mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 02:45:06 +00:00
print fields failreAction and background for kyverno policy
This commit is contained in:
parent
9c7cdee8ef
commit
d19a44d34c
5 changed files with 80 additions and 2 deletions
|
@ -3,6 +3,16 @@ kind: CustomResourceDefinition
|
|||
metadata:
|
||||
name: clusterpolicies.kyverno.io
|
||||
spec:
|
||||
additionalPrinterColumns:
|
||||
- JSONPath: .spec.background
|
||||
description: Background provides choice for applying rules to existing resources.
|
||||
name: Background
|
||||
type: string
|
||||
- JSONPath: .spec.validationFailureAction
|
||||
description: ValidationFailureAction provides choice to enforce rules to resources
|
||||
during policy application.
|
||||
name: Validation FailureAction
|
||||
type: string
|
||||
group: kyverno.io
|
||||
names:
|
||||
kind: ClusterPolicy
|
||||
|
@ -414,6 +424,16 @@ kind: CustomResourceDefinition
|
|||
metadata:
|
||||
name: policies.kyverno.io
|
||||
spec:
|
||||
additionalPrinterColumns:
|
||||
- JSONPath: .spec.background
|
||||
description: Background provides choice for applying rules to existing resources.
|
||||
name: Background
|
||||
type: string
|
||||
- JSONPath: .spec.validationFailureAction
|
||||
description: ValidationFailureAction provides choice to enforce rules to resources
|
||||
during policy application.
|
||||
name: Validation FailureAction
|
||||
type: string
|
||||
group: kyverno.io
|
||||
names:
|
||||
kind: Policy
|
||||
|
|
|
@ -3,6 +3,15 @@ kind: CustomResourceDefinition
|
|||
metadata:
|
||||
name: clusterpolicies.kyverno.io
|
||||
spec:
|
||||
additionalPrinterColumns:
|
||||
- JSONPath: .spec.background
|
||||
description: Background provides choice for applying rules to existing resources.
|
||||
name: Background
|
||||
type: string
|
||||
- JSONPath: .spec.validationFailureAction
|
||||
description: ValidationFailureAction provides choice to enforce rules to resources during policy application.
|
||||
name: Validation FailureAction
|
||||
type: string
|
||||
group: kyverno.io
|
||||
versions:
|
||||
- name: v1
|
||||
|
@ -277,6 +286,15 @@ kind: CustomResourceDefinition
|
|||
metadata:
|
||||
name: policies.kyverno.io
|
||||
spec:
|
||||
additionalPrinterColumns:
|
||||
- JSONPath: .spec.background
|
||||
description: Background provides choice for applying rules to existing resources.
|
||||
name: Background
|
||||
type: string
|
||||
- JSONPath: .spec.validationFailureAction
|
||||
description: ValidationFailureAction provides choice to enforce rules to resources during policy application.
|
||||
name: Validation FailureAction
|
||||
type: string
|
||||
group: kyverno.io
|
||||
versions:
|
||||
- name: v1
|
||||
|
|
|
@ -8,6 +8,16 @@ kind: CustomResourceDefinition
|
|||
metadata:
|
||||
name: clusterpolicies.kyverno.io
|
||||
spec:
|
||||
additionalPrinterColumns:
|
||||
- JSONPath: .spec.validationFailureAction
|
||||
description: ValidationFailureAction provides choice to enforce rules to resources
|
||||
during policy application.
|
||||
name: Validation FailureAction
|
||||
type: string
|
||||
- JSONPath: .spec.background
|
||||
description: Background provides choice for applying rules to existing resources.
|
||||
name: Background
|
||||
type: string
|
||||
group: kyverno.io
|
||||
names:
|
||||
kind: ClusterPolicy
|
||||
|
@ -419,6 +429,16 @@ kind: CustomResourceDefinition
|
|||
metadata:
|
||||
name: policies.kyverno.io
|
||||
spec:
|
||||
additionalPrinterColumns:
|
||||
- JSONPath: .spec.validationFailureAction
|
||||
description: ValidationFailureAction provides choice to enforce rules to resources
|
||||
during policy application.
|
||||
name: Validation FailureAction
|
||||
type: string
|
||||
- JSONPath: .spec.background
|
||||
description: Background provides choice for applying rules to existing resources.
|
||||
name: Background
|
||||
type: string
|
||||
group: kyverno.io
|
||||
names:
|
||||
kind: Policy
|
||||
|
|
|
@ -8,6 +8,16 @@ kind: CustomResourceDefinition
|
|||
metadata:
|
||||
name: clusterpolicies.kyverno.io
|
||||
spec:
|
||||
additionalPrinterColumns:
|
||||
- JSONPath: .spec.background
|
||||
description: Background provides choice for applying rules to existing resources.
|
||||
name: Background
|
||||
type: string
|
||||
- JSONPath: .spec.validationFailureAction
|
||||
description: ValidationFailureAction provides choice to enforce rules to resources
|
||||
during policy application.
|
||||
name: Validation FailureAction
|
||||
type: string
|
||||
group: kyverno.io
|
||||
names:
|
||||
kind: ClusterPolicy
|
||||
|
@ -419,6 +429,16 @@ kind: CustomResourceDefinition
|
|||
metadata:
|
||||
name: policies.kyverno.io
|
||||
spec:
|
||||
additionalPrinterColumns:
|
||||
- JSONPath: .spec.background
|
||||
description: Background provides choice for applying rules to existing resources.
|
||||
name: Background
|
||||
type: string
|
||||
- JSONPath: .spec.validationFailureAction
|
||||
description: ValidationFailureAction provides choice to enforce rules to resources
|
||||
during policy application.
|
||||
name: Validation FailureAction
|
||||
type: string
|
||||
group: kyverno.io
|
||||
names:
|
||||
kind: Policy
|
||||
|
|
|
@ -148,7 +148,7 @@ type Policy struct {
|
|||
type Spec struct {
|
||||
// Rules contains the list of rules to be applied to resources
|
||||
Rules []Rule `json:"rules,omitempty" yaml:"rules,omitempty"`
|
||||
// ValidationFailureAction provides choice to enforce rules to resources during policy violations.
|
||||
// ValidationFailureAction provides choice to enforce rules to resources during policy application.
|
||||
// Default value is "audit".
|
||||
ValidationFailureAction string `json:"validationFailureAction,omitempty" yaml:"validationFailureAction,omitempty"`
|
||||
// Background provides choice for applying rules to existing resources.
|
||||
|
@ -193,7 +193,7 @@ type Rule struct {
|
|||
}
|
||||
|
||||
type ContextEntry struct {
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
ConfigMap *ConfigMapReference `json:"configMap,omitempty" yaml:"configMap,omitempty"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue