Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
  • Loading branch information
AleksZimin committed Sep 23, 2024
1 parent 4b3694e commit e9ca9d6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions templates/csi/controller.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
###
### common
###
{{- $csiInitContainerCommand := "- /wait-rpcbind" }}
{{- define "csi_init_container_command" }}
- "/wait-rpcbind"
{{- end }}

{{- if .Values.csiNfs.v3support }}
{{- $csiInitContainerImage := include "helm_lib_module_image" (list . "waitRpcbind") }}
{{- end }}


###
Expand Down Expand Up @@ -120,8 +125,8 @@
{{- if .Values.csiNfs.v3support }}
{{- $_ := set $csiNodeConfig "additionalNodeVolumes" (include "csi_additional_node_volume" . | fromYamlArray) }}
{{- $_ := set $csiNodeConfig "additionalNodeVolumeMounts" (include "csi_additional_node_volume_mounts" . | fromYamlArray) }}
# {{- $_ := set $csiNodeConfig "initContainerCommand" $csiInitContainerCommand }}
# {{- $_ := set $csiNodeConfig "initContainerImage" $csiInitContainerImage }}
{{- $_ := set $csiNodeConfig "initContainerImage" $csiInitContainerImage }}
{{- $_ := set $csiNodeConfig "initContainerCommand" (include "csi_init_container_command" . | fromYamlArray) }}
{{- end }}

{{- include "helm_lib_csi_node_manifests" (list . $csiNodeConfig) }}

0 comments on commit e9ca9d6

Please sign in to comment.