mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
update clusterpolicy description
This commit is contained in:
parent
1e00ef27d0
commit
9d7c304ffe
7 changed files with 37 additions and 21 deletions
|
@ -26,7 +26,8 @@ spec:
|
|||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: ClusterPolicy ...
|
||||
description: ClusterPolicy declares validation, mutation, and generation behaviors
|
||||
for matching resources.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
|
@ -41,7 +42,7 @@ spec:
|
|||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec is the information to identify the policy
|
||||
description: Spec declares policy behaviors.
|
||||
properties:
|
||||
background:
|
||||
default: true
|
||||
|
@ -404,6 +405,7 @@ spec:
|
|||
description: Value specifies the value to be applied.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
patchesJson6902:
|
||||
|
@ -490,7 +492,7 @@ spec:
|
|||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: Status contains statistics related to policy
|
||||
description: Status contains policy runtime data.
|
||||
properties:
|
||||
averageExecutionTime:
|
||||
description: AvgExecutionTime is the average time taken to process
|
||||
|
@ -1814,6 +1816,7 @@ spec:
|
|||
description: Value specifies the value to be applied.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
patchesJson6902:
|
||||
|
|
|
@ -28,7 +28,8 @@ spec:
|
|||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: ClusterPolicy ...
|
||||
description: ClusterPolicy declares validation, mutation, and generation behaviors
|
||||
for matching resources.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
|
@ -43,7 +44,7 @@ spec:
|
|||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec is the information to identify the policy
|
||||
description: Spec declares policy behaviors.
|
||||
properties:
|
||||
background:
|
||||
default: true
|
||||
|
@ -406,6 +407,7 @@ spec:
|
|||
description: Value specifies the value to be applied.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
patchesJson6902:
|
||||
|
@ -492,7 +494,7 @@ spec:
|
|||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: Status contains statistics related to policy
|
||||
description: Status contains policy runtime data.
|
||||
properties:
|
||||
averageExecutionTime:
|
||||
description: AvgExecutionTime is the average time taken to process
|
||||
|
|
|
@ -408,6 +408,7 @@ spec:
|
|||
description: Value specifies the value to be applied.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
patchesJson6902:
|
||||
|
|
|
@ -31,7 +31,8 @@ spec:
|
|||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: ClusterPolicy ...
|
||||
description: ClusterPolicy declares validation, mutation, and generation behaviors
|
||||
for matching resources.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
|
@ -46,7 +47,7 @@ spec:
|
|||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec is the information to identify the policy
|
||||
description: Spec declares policy behaviors.
|
||||
properties:
|
||||
background:
|
||||
default: true
|
||||
|
@ -409,6 +410,7 @@ spec:
|
|||
description: Value specifies the value to be applied.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
patchesJson6902:
|
||||
|
@ -495,7 +497,7 @@ spec:
|
|||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: Status contains statistics related to policy
|
||||
description: Status contains policy runtime data.
|
||||
properties:
|
||||
averageExecutionTime:
|
||||
description: AvgExecutionTime is the average time taken to process
|
||||
|
@ -1819,6 +1821,7 @@ spec:
|
|||
description: Value specifies the value to be applied.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
patchesJson6902:
|
||||
|
|
|
@ -31,7 +31,8 @@ spec:
|
|||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: ClusterPolicy ...
|
||||
description: ClusterPolicy declares validation, mutation, and generation behaviors
|
||||
for matching resources.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
|
@ -46,7 +47,7 @@ spec:
|
|||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec is the information to identify the policy
|
||||
description: Spec declares policy behaviors.
|
||||
properties:
|
||||
background:
|
||||
default: true
|
||||
|
@ -409,6 +410,7 @@ spec:
|
|||
description: Value specifies the value to be applied.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
patchesJson6902:
|
||||
|
@ -495,7 +497,7 @@ spec:
|
|||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: Status contains statistics related to policy
|
||||
description: Status contains policy runtime data.
|
||||
properties:
|
||||
averageExecutionTime:
|
||||
description: AvgExecutionTime is the average time taken to process
|
||||
|
@ -1819,6 +1821,7 @@ spec:
|
|||
description: Value specifies the value to be applied.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
patchesJson6902:
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// ClusterPolicy ...
|
||||
// ClusterPolicy declares validation, mutation, and generation behaviors for matching resources.
|
||||
// +genclient
|
||||
// +genclient:nonNamespaced
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
@ -16,13 +16,16 @@ import (
|
|||
type ClusterPolicy struct {
|
||||
metav1.TypeMeta `json:",inline,omitempty" yaml:",inline,omitempty"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||
// Spec is the information to identify the policy
|
||||
|
||||
// Spec declares policy behaviors.
|
||||
Spec Spec `json:"spec" yaml:"spec"`
|
||||
// Status contains statistics related to policy
|
||||
|
||||
// Status contains policy runtime data.
|
||||
// +optional
|
||||
Status PolicyStatus `json:"status,omitempty" yaml:"status,omitempty"`
|
||||
}
|
||||
|
||||
// ClusterPolicyList ...
|
||||
// ClusterPolicyList is a list of ClusterPolicy instances.
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
type ClusterPolicyList struct {
|
||||
metav1.TypeMeta `json:",inline" yaml:",inline"`
|
||||
|
|
|
@ -121,17 +121,17 @@ type ConditionOperator string
|
|||
|
||||
const (
|
||||
// Equal evaluates if the key is equal to the value.
|
||||
Equal ConditionOperator = "Equal"
|
||||
Equal ConditionOperator = "Equal"
|
||||
// Equals evaluates if the key is equal to the value.
|
||||
Equals ConditionOperator = "Equals"
|
||||
Equals ConditionOperator = "Equals"
|
||||
// Equals evaluates if the key is not equal to the value.
|
||||
NotEqual ConditionOperator = "NotEqual"
|
||||
NotEqual ConditionOperator = "NotEqual"
|
||||
// NotEquals evaluates if the key is not equal to the value.
|
||||
NotEquals ConditionOperator = "NotEquals"
|
||||
// In evaluates if the key is contained in the set of values.
|
||||
In ConditionOperator = "In"
|
||||
In ConditionOperator = "In"
|
||||
// NotIn evaluates if the key is not contained in the set of values.
|
||||
NotIn ConditionOperator = "NotIn"
|
||||
NotIn ConditionOperator = "NotIn"
|
||||
)
|
||||
|
||||
// MatchResources is used to specify resource and admission review request data for
|
||||
|
@ -212,6 +212,7 @@ type Mutation struct {
|
|||
// DEPRECATED. Use PatchesJSON6902 instead. Scheduled for
|
||||
// removal in release 1.5+.
|
||||
// +kubebuilder:validation:XPreserveUnknownFields
|
||||
// +nullable
|
||||
// +optional
|
||||
Patches []Patch `json:"patches,omitempty" yaml:"patches,omitempty"`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue