diff --git a/cmd/cli/kubectl-kyverno/apply/apply_command.go b/cmd/cli/kubectl-kyverno/apply/apply_command.go index a6a10bf7f6..88da64a47a 100644 --- a/cmd/cli/kubectl-kyverno/apply/apply_command.go +++ b/cmd/cli/kubectl-kyverno/apply/apply_command.go @@ -29,9 +29,11 @@ import ( "k8s.io/client-go/dynamic" "k8s.io/client-go/kubernetes" "sigs.k8s.io/controller-runtime/pkg/log" - yaml1 "sigs.k8s.io/yaml" + "sigs.k8s.io/yaml" ) +const divider = "----------------------------------------------------------------------" + type SkippedInvalidPolicies struct { skipped []string invalid []string @@ -85,42 +87,42 @@ To apply policy with variables: Format of value.yaml: policies: - - name: - rules: + - name: + rules: - name: values: : : - - name: + - name: + values: + : + : + resources: + - name: values: - : - : - resources: - - name: - values: - : - : - - name: - values: - : - : - - name: - resources: - - name: - values: - : - : - - name: - values: - : - : + : + : + - name: + values: + : + : + - name: + resources: + - name: + values: + : + : + - name: + values: + : + : namespaceSelector: - - name: + - name: labels: -