mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-07 12:01:23 -03:00
fix(rbac): adds resourceNames
This commit is contained in:
@@ -35,6 +35,8 @@ tests:
|
||||
- "{{ .Values.some_group }}"
|
||||
resources:
|
||||
- "{{ .Values.some_resource }}"
|
||||
resourceNames:
|
||||
- "{{ .Values.some_name }}"
|
||||
verbs:
|
||||
- "{{ .Values.some_verb }}"
|
||||
subjects:
|
||||
@@ -67,6 +69,8 @@ tests:
|
||||
- apps
|
||||
resources:
|
||||
- deployments
|
||||
resourceNames:
|
||||
- some-name
|
||||
verbs:
|
||||
- list
|
||||
- documentIndex: &roleBinding 3
|
||||
|
||||
@@ -15,4 +15,4 @@ maintainers:
|
||||
name: common
|
||||
sources: null
|
||||
type: library
|
||||
version: 17.1.1
|
||||
version: 17.1.2
|
||||
|
||||
@@ -36,7 +36,17 @@ objectData: The object data to be used to render the RBAC.
|
||||
{{- fail "RBAC - Expected non-empty entry in [rbac.rules.resources]" -}}
|
||||
{{- end }}
|
||||
- {{ tpl . $rootCtx | quote }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- /* resourceNames */}}
|
||||
{{- if .resourceNames -}}
|
||||
resourceNames:
|
||||
{{- range .resourceNames -}}
|
||||
{{- if not . -}}
|
||||
{{- fail "RBAC - Expected non-empty entry in <rbac.rules.resourceNames>" -}}
|
||||
{{- end }}
|
||||
- {{ tpl . $rootCtx | quote }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- /* verbs */}}
|
||||
verbs:
|
||||
{{- range .verbs -}}
|
||||
|
||||
Reference in New Issue
Block a user