File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ maintainers:
5
5
- name : QJOLY
6
6
7
7
name : common
8
- version : v0.3.10
8
+ version : v0.3.11
9
9
appVersion : " 0"
10
10
kubeVersion : " >= 1.18"
11
11
home : https://github.com/RubxKube/common-charts
Original file line number Diff line number Diff line change 80
80
key : secret
81
81
{{- end }}
82
82
{{- end }}
83
- {{- if or (.Values.variables.secret.existingSecret) (.Values.variables.secret.extraExistingSecrets) }}
83
+ {{- if and (.Values.variables.secret.existingSecret) (.Values.variables.secret.extraExistingSecrets) }}
84
84
{{- $secrets := concat .Values.variables.secret.existingSecret .Values.variables.secret.extraExistingSecrets }}
85
85
{{- range $index, $value := $secrets }}
86
86
- name : {{ $value.envName }}
89
89
name : {{ $value.name }}
90
90
key : {{ $value.key }}
91
91
{{- end }}
92
- {{- end }}
93
-
92
+ {{- else if (.Values.variables.secret.existingSecret) -}}
93
+ {{- range $index, $value := .Values.variables.secret.existingSecret }}
94
+ - name : {{ $value.envName }}
95
+ valueFrom :
96
+ secretKeyRef :
97
+ name : {{ $value.name }}
98
+ key : {{ $value.key }}
99
+ {{- end }}
100
+
101
+ {{- else if (.Values.variables.secret.extraExistingSecrets) -}}
102
+ {{- range $index, $value := .Values.variables.secret.extraExistingSecrets }}
103
+ - name : {{ $value.envName }}
104
+ valueFrom :
105
+ secretKeyRef :
106
+ name : {{ $value.name }}
107
+ key : {{ $value.key }}
108
+ {{- end }}
109
+ {{- end }}
94
110
{{- end }}
95
111
{{- if .Values.service.enabled }}
96
112
{{- end }}
You can’t perform that action at this time.
0 commit comments