Skip to content

Commit

Permalink
consolidate secret file path to a single env var
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeatdell committed Jan 17, 2025
1 parent 39af22e commit 6b78f99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ spec:
- name: X_CSI_REVPROXY_USE_SECRET
value: {{ $useRevProxySecret | quote }}
{{- if $useRevProxySecret }}
- name: X_CSI_REVPROXY_SECRET_PATH
value: "/etc/powermax"
- name: X_CSI_REVPROXY_SECRET_NAME
value: config
- name: X_CSI_REVPROXY_SECRET_FILEPATH
value: "/etc/powermax/config"
{{- else }}
- name: X_CSI_REVPROXY_CONFIG_DIR
value: /etc/config/configmap
Expand Down
12 changes: 4 additions & 8 deletions charts/csi-powermax/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,8 @@ spec:
- name: X_CSI_REVPROXY_USE_SECRET
value: {{ $useRevProxySecret | quote }}
{{- if $useRevProxySecret }}
- name: X_CSI_REVPROXY_SECRET_PATH
value: "/etc/powermax"
- name: X_CSI_REVPROXY_SECRET_NAME
value: config
- name: X_CSI_REVPROXY_SECRET_FILEPATH
value: "/etc/powermax/config"
{{- end }}
- name: X_CSI_POWERMAX_DEBUG
value: {{ .Values.powerMaxDebug | default "false" | lower | quote }}
Expand Down Expand Up @@ -535,10 +533,8 @@ spec:
- name: X_CSI_REVPROXY_USE_SECRET
value: {{ $useRevProxySecret | quote }}
{{- if $useRevProxySecret }}
- name: X_CSI_REVPROXY_SECRET_PATH
value: "/etc/powermax"
- name: X_CSI_REVPROXY_SECRET_NAME
value: config
- name: X_CSI_REVPROXY_SECRET_FILEPATH
value: "/etc/powermax/config"
{{- else }}
- name: X_CSI_REVPROXY_CONFIG_DIR
value: /etc/config/configmap
Expand Down
6 changes: 2 additions & 4 deletions charts/csi-powermax/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,8 @@ spec:
- name: X_CSI_REVPROXY_USE_SECRET
value: {{ $useRevProxySecret | quote }}
{{- if $useRevProxySecret }}
- name: X_CSI_REVPROXY_SECRET_PATH
value: "/etc/powermax"
- name: X_CSI_REVPROXY_SECRET_NAME
value: config
- name: X_CSI_REVPROXY_SECRET_FILEPATH
value: "/etc/powermax/config"
{{- end }}
{{- if eq .Values.enableCHAP true }}
- name: X_CSI_POWERMAX_ISCSI_ENABLE_CHAP
Expand Down

0 comments on commit 6b78f99

Please sign in to comment.