Skip to content

Commit

Permalink
feat: add support for passing additional CSI container args (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpe authored Oct 25, 2024
1 parent a5c99d7 commit 1c52383
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/rancher-vsphere-csi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ annotations:
catalog.cattle.io/rancher-version: '>= 2.9.0-0'
catalog.cattle.io/release-name: vsphere-csi
apiVersion: v1
appVersion: 3.3.1-rancher6
appVersion: 3.3.1-rancher7
description: vSphere Cloud Storage Interface (CSI)
icon: https://charts.rancher.io/assets/logos/vsphere-csi.svg
keywords:
Expand All @@ -21,4 +21,4 @@ maintainers:
name: rancher-vsphere-csi
sources:
- https://github.com/kubernetes-sigs/vsphere-csi-driver
version: 3.3.1-rancher6
version: 3.3.1-rancher7
21 changes: 21 additions & 0 deletions charts/rancher-vsphere-csi/templates/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ spec:
- "--leader-election"
- "--kube-api-qps=100"
- "--kube-api-burst=100"
{{- range .Values.csiController.image.csiAttacher.additionalArgs }}
- {{ . | quote }}
{{- end }}
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -115,6 +118,9 @@ spec:
- "--kube-api-qps=100"
- "--kube-api-burst=100"
- "--leader-election"
{{- range .Values.csiController.image.csiResizer.additionalArgs }}
- {{ . | quote }}
{{- end }}
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -140,6 +146,9 @@ spec:
- "--leader-election-lease-duration=120s"
- "--leader-election-renew-deadline=60s"
- "--leader-election-retry-period=30s"
{{- range .Values.csiController.image.csiSnapshotter.additionalArgs }}
- {{ . | quote }}
{{- end }}
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -160,6 +169,9 @@ spec:
{{- if semverCompare "< 1.24" $.Capabilities.KubeVersion.Version }}
- "--use-gocsi=false"
{{- end }}
{{- range .Values.csiController.image.additionalArgs }}
- {{ . | quote }}
{{- end }}
env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
Expand Down Expand Up @@ -212,6 +224,9 @@ spec:
args:
- "--v=4"
- "--csi-address=/csi/csi.sock"
{{- range .Values.csiController.image.livenessProbe.additionalArgs }}
- {{ . | quote }}
{{- end }}
{{- with .Values.csiController.image.livenessProbe.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand All @@ -226,6 +241,9 @@ spec:
- "--leader-election"
- "--fss-name=internal-feature-states.csi.vsphere.vmware.com"
- "--fss-namespace=$(CSI_NAMESPACE)"
{{- range .Values.csiController.image.vsphereSyncer.additionalArgs }}
- {{ . | quote }}
{{- end }}
ports:
- containerPort: 2113
name: prometheus
Expand Down Expand Up @@ -269,6 +287,9 @@ spec:
- "--feature-gates=Topology=true"
- "--strict-topology"
{{- end }}
{{- range .Values.csiController.image.csiProvisioner.additionalArgs }}
- {{ . | quote }}
{{- end }}
env:
- name: ADDRESS
value: /csi/csi.sock
Expand Down
9 changes: 9 additions & 0 deletions charts/rancher-vsphere-csi/templates/node/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
- "--v=5"
- "--csi-address=$(ADDRESS)"
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
{{- range .Values.csiNode.image.nodeDriverRegistrar.additionalArgs }}
- {{ . | quote }}
{{- end }}
env:
- name: ADDRESS
value: /csi/csi.sock
Expand Down Expand Up @@ -103,6 +106,9 @@ spec:
{{- if semverCompare "< 1.24" $.Capabilities.KubeVersion.Version }}
- "--use-gocsi=false"
{{- end }}
{{- range .Values.csiNode.image.additionalArgs }}
- {{ . | quote }}
{{- end }}
env:
- name: NODE_NAME
valueFrom:
Expand Down Expand Up @@ -167,6 +173,9 @@ spec:
args:
- "--v=4"
- "--csi-address=/csi/csi.sock"
{{- range .Values.csiNode.image.livenessProbe.additionalArgs }}
- {{ . | quote }}
{{- end }}
{{- with .Values.csiNode.image.livenessProbe.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/rancher-vsphere-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ csiController:
repository: rancher/mirrored-cloud-provider-vsphere-csi-release-driver
tag: latest
imagePullPolicy: ""
additionalArgs: []
resources: {}
#resources:
# limits:
Expand All @@ -39,6 +40,7 @@ csiController:
repository: rancher/mirrored-sig-storage-csi-attacher
tag: latest
imagePullPolicy: ""
additionalArgs: []
resources: {}
#resources:
# limits:
Expand All @@ -51,6 +53,7 @@ csiController:
repository: rancher/mirrored-sig-storage-csi-resizer
tag: latest
imagePullPolicy: ""
additionalArgs: []
resources: {}
#resources:
# limits:
Expand All @@ -63,6 +66,7 @@ csiController:
repository: rancher/mirrored-sig-storage-livenessprobe
tag: latest
imagePullPolicy: ""
additionalArgs: []
resources: {}
#resources:
# limits:
Expand All @@ -75,6 +79,7 @@ csiController:
repository: rancher/mirrored-cloud-provider-vsphere-csi-release-syncer
tag: latest
imagePullPolicy: ""
additionalArgs: []
resources: {}
#resources:
# limits:
Expand All @@ -87,6 +92,7 @@ csiController:
repository: rancher/mirrored-sig-storage-csi-provisioner
tag: latest
imagePullPolicy: ""
additionalArgs: []
resources: {}
#resources:
# limits:
Expand All @@ -99,6 +105,7 @@ csiController:
repository: rancher/mirrored-sig-storage-csi-snapshotter
tag: latest
imagePullPolicy: ""
additionalArgs: []
resources: {}
#resources:
# limits:
Expand Down Expand Up @@ -178,6 +185,7 @@ csiNode:
repository: rancher/mirrored-cloud-provider-vsphere-csi-release-driver
tag: latest
imagePullPolicy: ""
additionalArgs: []
resources: {}
#resources:
# limits:
Expand All @@ -190,6 +198,7 @@ csiNode:
repository: rancher/mirrored-sig-storage-csi-node-driver-registrar
tag: latest
imagePullPolicy: ""
additionalArgs: []
resources: {}
#resources:
# limits:
Expand All @@ -202,6 +211,7 @@ csiNode:
repository: rancher/mirrored-sig-storage-livenessprobe
tag: latest
imagePullPolicy: ""
additionalArgs: []
resources: {}
#resources:
# limits:
Expand Down

0 comments on commit 1c52383

Please sign in to comment.