Skip to content

Commit

Permalink
config: fix constraint for hnc user namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-elastisys committed Oct 16, 2024
1 parent 1fe64bd commit 02b21f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helmfile.d/values/hnc/controller.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ managedNamespaceLabels: {{- toYaml .Values.hnc.managedNamespaceLabels | nindent

rbac:
user:
namespaces: {{- toYaml (without .Values.user.namespaces (keys .Values.user.constraints | join " ")) | nindent 6 }}
namespaces:
{{- range $namespace := .Values.user.namespaces }}
{{- if not (hasKey $.Values.user.constraints $namespace) }}
- {{ $namespace }}
{{- end }}
{{- end }}
groups: {{- toYaml .Values.user.adminGroups | nindent 6 }}
users: {{- toYaml .Values.user.adminUsers | nindent 6 }}

Expand Down

0 comments on commit 02b21f7

Please sign in to comment.