Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
change the second check to empty allowedNamespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
David Curran committed May 11, 2021
1 parent c0cf80f commit db96f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chart/flux/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ spec:
name: {{ .Values.env.secretName }}
{{- end }}
args:
{{- if and (not .Values.clusterRole.create) (not .Values.clusterRole.name) }}
{{- if and (not .Values.clusterRole.create) ( .Values.allowedNamespaces) }}
- --k8s-allow-namespace={{ join "," (append .Values.allowedNamespaces .Release.Namespace) }}
{{- end}}
{{- if .Values.defaultNamespace }}
Expand Down

0 comments on commit db96f30

Please sign in to comment.