1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 18:06:55 +00:00
kyverno/cmd/cli/kubectl-kyverno/create/templates/values.yaml
Charles-Edouard Brétéché a5251aa79b
feat: add create values cli command (#7779)
* feat: add  cli command

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

* feat: add create values cli command

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-07-31 23:48:00 +08:00

41 lines
825 B
YAML

# list of policy values
policies:
{{- range $key, $value := .Policies }}
- name: {{ .Name }}
{{- with .Rules }}
rules:
{{- range . }}
- name: {{ .Name }}
values:
{{- range $key, $value := .Values }}
{{ $key }}: {{ $value }}
{{- end }}
{{- end }}
{{- end }}
{{- with .Resources }}
resources:
{{- range . }}
- name: {{ .Name }}
values:
{{- range $key, $value := .Values }}
{{ $key }}: {{ $value }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
# list of global values
globalValues:
{{- range $key, $value := .GlobalValues }}
{{ $key }}: {{ $value }}
{{- end }}
# list of namespace selectors
namespaceSelector:
{{- range .NamespaceSelectors }}
- name: {{ .Name }}
labels:
{{- range $key, $value := .Labels }}
{{ $key }}: {{ $value }}
{{- end }}
{{- end }}