diff --git a/charts/secrets-store-csi-driver-provider-aws/templates/daemonset.yaml b/charts/secrets-store-csi-driver-provider-aws/templates/daemonset.yaml index bb7aaaa..e35ebc0 100644 --- a/charts/secrets-store-csi-driver-provider-aws/templates/daemonset.yaml +++ b/charts/secrets-store-csi-driver-provider-aws/templates/daemonset.yaml @@ -49,6 +49,11 @@ spec: - name: mountpoint-dir mountPath: {{ .Values.kubeletPath }}/pods mountPropagation: HostToContainer + {{- if .Values.useFipsEndpoint }} + env: + - name: AWS_USE_FIPS_ENDPOINT + value: {{ .Values.useFipsEndpoint | quote }} + {{- end }} volumes: - name: providervol hostPath: @@ -77,8 +82,3 @@ spec: affinity: {{ toYaml . | indent 8 }} {{- end }} -{{- if .Values.useFipsEndpoint }} - env: - - name: AWS_USE_FIPS_ENDPOINT - value: {{ .Values.useFipsEndpoint }} -{{- end }}