1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/cmd/cli/kubectl-kyverno/commands/create/templates/test.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

28 lines
476 B
YAML

# test name
name: {{ .Name }}
# list of policy files
policies:
{{- range .Policies }}
- {{ . }}
{{- end }}
# list of resource files
resources:
{{- range .Resources }}
- {{ . }}
{{- end }}
# variables file (optional)
variables: {{ .Values }}
# list of expected results
results:
{{- range .Results }}
- policy: {{ .Policy }}
rule: {{ .Rule }}
resource: {{ .Resource }}
namespace: {{ .Namespace }}
kind: {{ .Kind }}
result: {{ .Result }}
{{- end }}