Skip to content

Commit

Permalink
Update helm charts to handle rockcraft and a different storage.path (#2)
Browse files Browse the repository at this point in the history
* Update helm charts to handle rockcraft and an alternate controller.storage.path

* disable storageCapacity for now

* Address review comments

* Address review comments again
  • Loading branch information
addyess authored Feb 2, 2024
1 parent 32420d3 commit e3ea721
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/rawfile-csi/templates/00-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ spec:
attachRequired: false
podInfoOnMount: true
fsGroupPolicy: File
storageCapacity: true
storageCapacity: false # TODO: reenable once switch from using v1beta1 apis
volumeLifecycleModes:
- Persistent
9 changes: 7 additions & 2 deletions deploy/charts/rawfile-csi/templates/01-controller-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,21 @@ spec:
operator: Equal
value: "true"
effect: NoSchedule
- key: "node-role.kubernetes.io/control-plane"
operator: Equal
value: "true"
effect: NoSchedule
volumes:
- name: socket-dir
emptyDir: {}
containers:
- name: csi-driver
image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
{{- if .Values.controller.csiDriverArgs }}
args:
- csi-driver
- --disable-metrics
{{- .Values.controller.csiDriverArgs | toYaml | nindent 10 }}
{{- end }}
env:
- name: PROVISIONER_NAME
value: "{{ .Values.provisionerName }}"
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/rawfile-csi/templates/01-node-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
type: DirectoryOrCreate
- name: data-dir
hostPath:
path: /var/csi/rawfile
path: {{ .Values.node.storage.path | quote }}
type: DirectoryOrCreate
containers:
- name: csi-driver
Expand Down
5 changes: 5 additions & 0 deletions deploy/charts/rawfile-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ defaults: &defaults

controller:
<<: *defaults
csiDriverArgs:
- csi-driver
- --disable-metrics

node:
<<: *defaults
storage:
path: /var/csi/rawfile
metrics:
enabled: false

Expand Down

0 comments on commit e3ea721

Please sign in to comment.