Skip to content

Commit 831df39

Browse files
committed
Add namespace in default VaultAuth spec only if value is not nil in values.yaml
When deploying the chart with argocd in serversideapply mode, a nil value for namespace in default VaultAuth spec is rejected
1 parent 9b840a5 commit 831df39

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

chart/templates/default-vault-auth-method.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ metadata:
1515
app.kubernetes.io/component: controller-manager
1616
{{- include "vso.chart.labels" . | nindent 4 }}
1717
spec:
18+
{{- if .Values.defaultAuthMethod.namespace }}
1819
namespace: {{ .Values.defaultAuthMethod.namespace }}
20+
{{- end }}
1921
{{- if .Values.defaultAuthMethod.allowedNamespaces }}
2022
allowedNamespaces:
2123
{{- toYaml .Values.defaultAuthMethod.allowedNamespaces | nindent 4 }}

0 commit comments

Comments
 (0)