1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/cmd/cli/kubectl-kyverno/create/templates/user-info.yaml
Charles-Edouard Brétéché 5e56f51408
feat: add create user-info cli command (#7780)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-07-07 12:32:09 +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 }}