File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
charts/helm_lib/templates Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ memory: 50Mi
5656 { {- $attacherWorkers := $config .attacherWorkers | default " 10" } }
5757 { {- $resizerWorkers := $config .resizerWorkers | default " 10" } }
5858 { {- $snapshotterWorkers := $config .snapshotterWorkers | default " 10" } }
59+ { {- $additionalControllerAnnotations := $config .additionalControllerAnnotations } }
5960 { {- $additionalControllerEnvs := $config .additionalControllerEnvs } }
6061 { {- $additionalSyncerEnvs := $config .additionalSyncerEnvs } }
6162 { {- $additionalControllerArgs := $config .additionalControllerArgs } }
@@ -173,11 +174,11 @@ metadata:
173174 name: { { $fullname } }
174175 namespace: d8-{ { $context .Chart.Name } }
175176 { {- include " helm_lib_module_labels" (list $context (dict " app" " csi-controller" )) | nindent 2 } }
176-
177- { {- if eq $context .Chart.Name " csi-nfs" } }
178- annotations:
179- pod-reloader.deckhouse.io/auto: "true"
177+
178+ { {- if $additionalControllerAnnotations } }
179+ { {- $additionalControllerAnnotations | toYaml | nindent 2 } }
180180 { {- end } }
181+
181182spec:
182183 replicas: 1
183184 revisionHistoryLimit: 2
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ memory: 25Mi
3030 { {- $additionalContainers := $config .additionalContainers } }
3131 { {- $initContainers := $config .initContainers } }
3232 { {- $additionalPullSecrets := $config .additionalPullSecrets } }
33-
33+ { {- $ additionalNodeAnnotations := $ config .additionalNodeAnnotations } }
3434 { {- $kubernetesSemVer := semver $context .Values.global.discovery.kubernetesVersion } }
3535 { {- $driverRegistrarImageName := join " " (list " csiNodeDriverRegistrar" $kubernetesSemVer .Major $kubernetesSemVer .Minor) } }
3636 { {- $driverRegistrarImage := include " helm_lib_module_common_image_no_fail" (list $context $driverRegistrarImageName ) } }
@@ -77,10 +77,10 @@ metadata:
7777 namespace: d8-{ { $context .Chart.Name } }
7878 { {- include " helm_lib_module_labels" (list $context (dict " app" " csi-node" )) | nindent 2 } }
7979
80- { {- if eq $context .Chart.Name " csi-nfs" } }
81- annotations:
82- pod-reloader.deckhouse.io/auto: "true"
80+ { {- if $additionalNodeAnnotations } }
81+ { {- $additionalNodeAnnotations | toYaml | nindent 2 } }
8382 { {- end } }
83+
8484 { {- if hasPrefix " cloud-provider-" $context .Chart.Name } }
8585 annotations:
8686 cloud-config-checksum: { { include (print $context .Template.BasePath " /cloud-controller-manager/secret.yaml" ) $context | sha256sum } }
You can’t perform that action at this time.
0 commit comments