Skip to content

Commit

Permalink
Add config values for CSI images
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoflorido committed Jun 20, 2024
1 parent d2eb727 commit b751d80
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/rawfile-csi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: rawfile-csi
description: RawFile Driver Container Storage Interface
type: application
version: 0.8.0
version: 1.0.0
appVersion: 0.8.0
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
resources:
{{- toYaml .Values.controller.resources | nindent 12 }}
- name: external-resizer
image: k8s.gcr.io/sig-storage/csi-resizer:v1.7.0
image: {{ .Values.csiImages.repository }}/{{ .Values.csiImages.csiResizer.image }}:{{ .Values.csiImages.csiResizer.tag }}
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
Expand Down
6 changes: 3 additions & 3 deletions deploy/charts/rawfile-csi/templates/01-node-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ spec:
resources:
{{- toYaml .Values.node.resources | nindent 12 }}
- name: node-driver-registrar
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.10.0
image: {{ .Values.csiImages.repository }}/{{ .Values.csiImages.nodeDriverRegistrar.image }}:{{ .Values.csiImages.nodeDriverRegistrar.tag }}
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
Expand Down Expand Up @@ -124,7 +124,7 @@ spec:
cpu: 10m
memory: 100Mi
- name: external-provisioner
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.4.1
image: {{ .Values.csiImages.repository }}/{{ .Values.csiImages.csiProvisioner.image }}:{{ .Values.csiImages.csiProvisioner.tag }}
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
Expand Down Expand Up @@ -154,7 +154,7 @@ spec:
- name: socket-dir
mountPath: /csi
- name: external-snapshotter
image: k8s.gcr.io/sig-storage/csi-snapshotter:v6.2.1
image: {{ .Values.csiImages.repository }}/{{ .Values.csiImages.csiSnapshotter.image }}:{{ .Values.csiImages.csiSnapshotter.tag }}
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
Expand Down
4 changes: 2 additions & 2 deletions deploy/charts/rawfile-csi/templates/02-storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: StorageClass
metadata:
name: {{ .Values.storageClass.name }}
annotations:
storageclass.kubernetes.io/is-default-class: {{ .Values.storageClass.isDefault }}
storageclass.kubernetes.io/is-default-class: {{ .Values.storageClass.isDefault | quote }}
provisioner: rawfile.csi.openebs.io
reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
volumeBindingMode: {{ .Values.storageClass.volumeBindingMode }}
allowVolumeExpansion: true
{{- end }}
{{- end }}
15 changes: 15 additions & 0 deletions deploy/charts/rawfile-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ controller:
- csi-driver
- --disable-metrics

csiImages:
repository: registry.k8s.io/sig-storage
csiProvisioner:
image: csi-provisioner
tag: v5.0.1
csiResizer:
image: csi-resizer
tag: v1.11.1
csiSnapshotter:
image: csi-snapshotter
tag: v8.0.1
nodeDriverRegistrar:
image: csi-node-driver-registrar
tag: v2.10.1

node:
<<: *defaults
storage:
Expand Down

0 comments on commit b751d80

Please sign in to comment.