1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-07 00:17:13 +00:00
kyverno/cmd/cli/kubectl-kyverno/commands/create/templates/user-info.yaml
Charles-Edouard Brétéché cef4a9b546
refactor: move all cli commands in a commands package (#8231)
* chore: name all cli command files the same

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* refactor: move all cli commands in a commands package

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* root

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-04 15:15:55 +00:00

21 lines
320 B
YAML

# list of roles
roles:
{{- range .Roles }}
- {{ . }}
{{- end }}
# list of cluster roles
clusterRoles:
{{- range .ClusterRoles }}
- {{ . }}
{{- end }}
userInfo:
# user name
username: {{ .AdmissionUserInfo.Username }}
# list of groups
groups:
{{- range .AdmissionUserInfo.Groups }}
- {{ . }}
{{- end }}