Skip to content

Commit 8894e7c

Browse files
committed
WZ-59890: Put default values for all proxy keys
Wiz charts expect all the keys to exist in a secret containing the proxy configuration. If some values are not present then empty strings should be used
1 parent 6eac98f commit 8894e7c

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

wiz-outpost-configuration/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2025.07.07
18+
version: 2025.08.19
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

wiz-outpost-configuration/templates/httpProxyConfiguration.secret.yaml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,18 @@ metadata:
1313
meta.helm.sh/release-namespace: "{{ .Release.Namespace }}"
1414
data:
1515
{{- with .Values.httpProxyConfiguration.httpProxy }}
16-
httpProxy: {{ . | b64enc | quote }}
17-
http-proxy: {{ . | b64enc | quote }}
16+
httpProxy: {{ . | default "" | b64enc | quote }}
17+
http-proxy: {{ . | default "" | b64enc | quote }}
1818
{{- end }}
1919
{{- with .Values.httpProxyConfiguration.httpsProxy }}
20-
httpsProxy: {{ . | b64enc | quote }}
21-
https-proxy: {{ . | b64enc | quote }}
22-
{{- end }}
23-
{{- if .Values.httpProxyConfiguration.noProxy }}
24-
no-proxy-address: {{ $noProxySpaceSeparatedList | b64enc | quote }}
25-
no-proxy-address-cs: {{ $noProxyCommaSeparatedList | b64enc | quote }}
26-
noProxyAddress: {{ $noProxyCommaSeparatedList | b64enc | quote }}
27-
noProxyAddressSpaceSepareted: {{ $noProxySpaceSeparatedList | b64enc | quote }}
28-
{{- end }}
29-
{{- if .Values.httpProxyConfiguration.caCertificate }}
30-
caCertificate: {{ .Values.httpProxyConfiguration.caCertificate | b64enc | quote }}
31-
{{- else }}
32-
caCertificate: ""
33-
{{- end }}
34-
{{- if .Values.httpProxyConfiguration.clientCertificate }}
35-
clientCertificate: {{ .Values.httpProxyConfiguration.clientCertificate | b64enc | quote }}
36-
{{- else }}
37-
clientCertificate: ""
20+
httpsProxy: {{ . | default "" | b64enc | quote }}
21+
https-proxy: {{ . | default "" | b64enc | quote }}
3822
{{- end }}
23+
24+
no-proxy-address: {{ $noProxySpaceSeparatedList | default "" | b64enc | quote }}
25+
no-proxy-address-cs: {{ $noProxyCommaSeparatedList | default "" | b64enc | quote }}
26+
noProxyAddress: {{ $noProxyCommaSeparatedList | default "" | b64enc | quote }}
27+
noProxyAddressSpaceSepareted: {{ $noProxySpaceSeparatedList | default "" | b64enc | quote }}
28+
caCertificate: {{ .Values.httpProxyConfiguration.caCertificate | default "" | b64enc | quote }}
29+
clientCertificate: {{ .Values.httpProxyConfiguration.clientCertificate | default "" | b64enc | quote }}
3930
{{- end }}

0 commit comments

Comments
 (0)