mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
* 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>
41 lines
825 B
YAML
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 }}
|