Skip to content

v1alpha1

Package v1alpha1 contains API Schema definitions for the policy v1alpha1 API group

Resource Types

ValidatingPolicy

Appears in:

ValidatingPolicy is the resource that contains the policy definition.

Field Type Required Inline Description
apiVersion string ✅ json.kyverno.io/v1alpha1
kind string ✅ ValidatingPolicy
metadata meta/v1.ObjectMeta

Standard object's metadata.

spec ValidatingPolicySpec ✅

Policy spec.

ValidatingPolicyList

ValidatingPolicyList is a list of ValidatingPolicy instances.

Field Type Required Inline Description
apiVersion string ✅ json.kyverno.io/v1alpha1
kind string ✅ ValidatingPolicyList
metadata meta/v1.ListMeta ✅ No description provided.
items []ValidatingPolicy ✅ No description provided.

Any

Appears in:

Any can be any type.

Field Type Required Inline Description
Value interface{} ✅

Value contains the value of the Any object.

Assert

Appears in:

Assert defines collections of assertions.

Field Type Required Inline Description
any []Assertion

Any allows specifying assertions which will be ORed.

all []Assertion

All allows specifying assertions which will be ANDed.

Assertion

Appears in:

Assertion contains an assertion tree associated with a message.

Field Type Required Inline Description
message string

Message is the message associated message.

check Any ✅

Check is the assertion check definition.

ContextEntry

Appears in:

ContextEntry adds variables and data sources to a rule context.

Field Type Required Inline Description
name string ✅

Name is the entry name.

variable Any

Variable defines an arbitrary variable.

Match

Appears in:

Match defines collections of assertion trees.

Field Type Required Inline Description
any []Any

Any allows specifying assertion trees which will be ORed.

all []Any

All allows specifying assertion trees which will be ANDed.

ValidatingPolicySpec

Appears in:

ValidatingPolicySpec contains the policy spec.

Field Type Required Inline Description
rules []ValidatingRule ✅

Rules is a list of ValidatingRule instances.

ValidatingRule

Appears in:

ValidatingRule defines a validating rule.

Field Type Required Inline Description
name string ✅

Name is a label to identify the rule, It must be unique within the policy.

context []ContextEntry

Context defines variables and data sources that can be used during rule execution.

match Match

Match defines when this policy rule should be applied.

exclude Match

Exclude defines when this policy rule should not be applied.

identifier string

Identifier declares a JMESPath expression to extract a name from the payload.

assert Assert ✅

Assert is used to validate matching resources.