-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path_rbac.yaml
More file actions
18 lines (12 loc) · 824 Bytes
/
_rbac.yaml
File metadata and controls
18 lines (12 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{{- define "cf-argocd-extras.sources-server.rbac" }}
{{- $context := deepCopy . }}
{{- $defaultVals := include "cf-argocd-extras.default-values" . | fromYaml }}
{{- $vals := mergeOverwrite $defaultVals (get .Values "cf-argocd-extras") }}
{{- $_ := set $context "Values" $vals.sourcesServer }}
{{- $_ := set $context.Values "global" (deepCopy (get .Values "global")) }}
{{/* Workaround to NOT change label selectors from previous runtime release when sources-server was part of cf-argocd-extras Subchart */}}
{{- $_ := set $context.Values "nameOverride" "cf-argocd-extras" }}
{{- $_ := set $context.Values.rbac "namespaced" (get .Values.global.runtime "singleNamespace") }}
{{- $templateName := printf "cf-common-%s.rbac" (index .Subcharts "cf-common").Chart.Version }}
{{- include $templateName $context }}
{{- end }}