Skip to content

Commit

Permalink
Support extraEnv on manila-csi-plugin helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
pli01 committed Jun 6, 2024
1 parent 3605770 commit dc4d76d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/manila-csi-plugin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: v1.30.0
description: Manila CSI Chart for OpenStack
name: openstack-manila-csi
version: 2.30.0
version: 2.30.1-alpha.1
home: http://github.com/kubernetes/cloud-provider-openstack
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
maintainers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
env:
- name: ADDRESS
value: "unix:///var/lib/kubelet/plugins/{{ printf "%s.%s" .protocolSelector $.Values.driverName | lower }}/csi-controllerplugin.sock"
{{- if $.Values.controllerplugin.provisioner.extraEnv }}
{{- toYaml $.Values.controllerplugin.provisioner.extraEnv | nindent 12 }}
{{- end }}
imagePullPolicy: {{ $.Values.controllerplugin.provisioner.image.pullPolicy }}
volumeMounts:
- name: {{ .protocolSelector | lower }}-plugin-dir
Expand All @@ -46,6 +49,9 @@ spec:
env:
- name: ADDRESS
value: "unix:///var/lib/kubelet/plugins/{{ printf "%s.%s" .protocolSelector $.Values.driverName | lower }}/csi-controllerplugin.sock"
{{- if $.Values.controllerplugin.snapshotter.extraEnv }}
{{- toYaml $.Values.controllerplugin.snapshotter.extraEnv | nindent 12 }}
{{- end }}
imagePullPolicy: {{ $.Values.controllerplugin.snapshotter.image.pullPolicy }}
volumeMounts:
- name: {{ .protocolSelector | lower }}-plugin-dir
Expand All @@ -61,6 +67,9 @@ spec:
env:
- name: ADDRESS
value: "unix:///var/lib/kubelet/plugins/{{ printf "%s.%s" .protocolSelector $.Values.driverName | lower }}/csi-controllerplugin.sock"
{{- if $.Values.controllerplugin.resizer.extraEnv }}
{{- toYaml $.Values.controllerplugin.resizer.extraEnv | nindent 12 }}
{{- end }}
imagePullPolicy: {{ $.Values.controllerplugin.resizer.image.pullPolicy }}
volumeMounts:
- name: {{ .protocolSelector | lower }}-plugin-dir
Expand Down Expand Up @@ -107,6 +116,9 @@ spec:
value: "unix://{{ .fwdNodePluginEndpoint.dir }}/{{ .fwdNodePluginEndpoint.sockFile }}"
- name: MANILA_SHARE_PROTO
value: "{{ .protocolSelector }}"
{{- if $.Values.controllerplugin.nodeplugin.extraEnv }}
{{- toYaml $.Values.controllerplugin.nodeplugin.extraEnv | nindent 12 }}
{{- end }}
imagePullPolicy: {{ $.Values.csimanila.image.pullPolicy }}
volumeMounts:
- name: {{ .protocolSelector | lower }}-plugin-dir
Expand Down
6 changes: 6 additions & 0 deletions charts/manila-csi-plugin/templates/nodeplugin-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
{{- if $.Values.nodeplugin.registrar.extraEnv }}
{{- toYaml $.Values.nodeplugin.registrar.extraEnv | nindent 12 }}
{{- end }}
imagePullPolicy: {{ $.Values.nodeplugin.registrar.image.pullPolicy }}
volumeMounts:
- name: {{ .protocolSelector | lower }}-plugin-dir
Expand Down Expand Up @@ -74,6 +77,9 @@ spec:
value: "unix://{{ .fwdNodePluginEndpoint.dir }}/{{ .fwdNodePluginEndpoint.sockFile }}"
- name: MANILA_SHARE_PROTO
value: "{{ .protocolSelector }}"
{{- if $.Values.nodeplugin.nodeplugin.extraEnv }}
{{- toYaml $.Values.nodeplugin.nodeplugin.extraEnv | nindent 12 }}
{{- end }}
imagePullPolicy: {{ $.Values.csimanila.image.pullPolicy }}
volumeMounts:
- name: {{ .protocolSelector | lower }}-plugin-dir
Expand Down
6 changes: 6 additions & 0 deletions charts/manila-csi-plugin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,15 @@ nodeplugin:
# CSI Manila container compute resources constraints
nodeplugin:
resources: {}
# extraEnv: []
# csi-node-driver-registrar
registrar:
image:
repository: registry.k8s.io/sig-storage/csi-node-driver-registrar
tag: v2.4.0
pullPolicy: IfNotPresent
resources: {}
# extraEnv: []
nodeSelector: {}
tolerations: []
affinity: {}
Expand All @@ -81,13 +83,15 @@ controllerplugin:
# CSI Manila container compute resources constraints
nodeplugin:
resources: {}
# extraEnv: []
# CSI external-provisioner container spec
provisioner:
image:
repository: registry.k8s.io/sig-storage/csi-provisioner
tag: v3.0.0
pullPolicy: IfNotPresent
resources: {}
# extraEnv: []
# Whether to pass --extra-create-metadata flag to csi-provisioner.
extraCreateMetadata: false
# CSI external-snapshotter container spec
Expand All @@ -97,13 +101,15 @@ controllerplugin:
tag: v5.0.1
pullPolicy: IfNotPresent
resources: {}
# extraEnv: []
# CSI external-resizer container spec
resizer:
image:
repository: registry.k8s.io/sig-storage/csi-resizer
tag: v1.8.0
pullPolicy: IfNotPresent
resources: {}
# extraEnv: []
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down

0 comments on commit dc4d76d

Please sign in to comment.