v2beta1

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyAllConditionsApplyConfiguration

type AnyAllConditionsApplyConfiguration struct {
	AnyConditions []ConditionApplyConfiguration `json:"any,omitempty"`
	AllConditions []ConditionApplyConfiguration `json:"all,omitempty"`
}

AnyAllConditionsApplyConfiguration represents an declarative configuration of the AnyAllConditions type for use with apply.

func AnyAllConditions

func AnyAllConditions() *AnyAllConditionsApplyConfiguration

AnyAllConditionsApplyConfiguration constructs an declarative configuration of the AnyAllConditions type for use with apply.

func (*AnyAllConditionsApplyConfiguration) WithAllConditions

WithAllConditions adds the given value to the AllConditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the AllConditions field.

func (*AnyAllConditionsApplyConfiguration) WithAnyConditions

WithAnyConditions adds the given value to the AnyConditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the AnyConditions field.

type CleanupPolicyApplyConfiguration

type CleanupPolicyApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",omitempty,inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *CleanupPolicySpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *CleanupPolicyStatusApplyConfiguration `json:"status,omitempty"`
}

CleanupPolicyApplyConfiguration represents an declarative configuration of the CleanupPolicy type for use with apply.

func CleanupPolicy

func CleanupPolicy(name, namespace string) *CleanupPolicyApplyConfiguration

CleanupPolicy constructs an declarative configuration of the CleanupPolicy type for use with apply.

func (*CleanupPolicyApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*CleanupPolicyApplyConfiguration) WithCreationTimestamp

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *CleanupPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CleanupPolicyApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithDeletionTimestamp

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*CleanupPolicyApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*CleanupPolicyApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*CleanupPolicyApplyConfiguration) WithResourceVersion

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*CleanupPolicyApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type CleanupPolicySpecApplyConfiguration

type CleanupPolicySpecApplyConfiguration struct {
	Context          []v1.ContextEntryApplyConfiguration `json:"context,omitempty"`
	MatchResources   *MatchResourcesApplyConfiguration   `json:"match,omitempty"`
	ExcludeResources *MatchResourcesApplyConfiguration   `json:"exclude,omitempty"`
	Schedule         *string                             `json:"schedule,omitempty"`
	Conditions       *AnyAllConditionsApplyConfiguration `json:"conditions,omitempty"`
}

CleanupPolicySpecApplyConfiguration represents an declarative configuration of the CleanupPolicySpec type for use with apply.

func CleanupPolicySpec

func CleanupPolicySpec() *CleanupPolicySpecApplyConfiguration

CleanupPolicySpecApplyConfiguration constructs an declarative configuration of the CleanupPolicySpec type for use with apply.

func (*CleanupPolicySpecApplyConfiguration) WithConditions

WithConditions sets the Conditions field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Conditions field is set to the value of the last call.

func (*CleanupPolicySpecApplyConfiguration) WithContext

WithContext adds the given value to the Context field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Context field.

func (*CleanupPolicySpecApplyConfiguration) WithExcludeResources

WithExcludeResources sets the ExcludeResources field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ExcludeResources field is set to the value of the last call.

func (*CleanupPolicySpecApplyConfiguration) WithMatchResources

WithMatchResources sets the MatchResources field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MatchResources field is set to the value of the last call.

func (*CleanupPolicySpecApplyConfiguration) WithSchedule

WithSchedule sets the Schedule field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Schedule field is set to the value of the last call.

type CleanupPolicyStatusApplyConfiguration

type CleanupPolicyStatusApplyConfiguration struct {
	Conditions        []v1.Condition `json:"conditions,omitempty"`
	LastExecutionTime *v1.Time       `json:"lastExecutionTime,omitempty"`
}

CleanupPolicyStatusApplyConfiguration represents an declarative configuration of the CleanupPolicyStatus type for use with apply.

func CleanupPolicyStatus

func CleanupPolicyStatus() *CleanupPolicyStatusApplyConfiguration

CleanupPolicyStatusApplyConfiguration constructs an declarative configuration of the CleanupPolicyStatus type for use with apply.

func (*CleanupPolicyStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*CleanupPolicyStatusApplyConfiguration) WithLastExecutionTime

WithLastExecutionTime sets the LastExecutionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastExecutionTime field is set to the value of the last call.

type ClusterCleanupPolicyApplyConfiguration

type ClusterCleanupPolicyApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",omitempty,inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *CleanupPolicySpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *CleanupPolicyStatusApplyConfiguration `json:"status,omitempty"`
}

ClusterCleanupPolicyApplyConfiguration represents an declarative configuration of the ClusterCleanupPolicy type for use with apply.

func ClusterCleanupPolicy

func ClusterCleanupPolicy(name string) *ClusterCleanupPolicyApplyConfiguration

ClusterCleanupPolicy constructs an declarative configuration of the ClusterCleanupPolicy type for use with apply.

func (*ClusterCleanupPolicyApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*ClusterCleanupPolicyApplyConfiguration) WithCreationTimestamp

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithDeletionGracePeriodSeconds

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithDeletionTimestamp

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*ClusterCleanupPolicyApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*ClusterCleanupPolicyApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*ClusterCleanupPolicyApplyConfiguration) WithResourceVersion

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*ClusterCleanupPolicyApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type ClusterPolicyApplyConfiguration

type ClusterPolicyApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",omitempty,inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *SpecApplyConfiguration                   `json:"spec,omitempty"`
	Status                           *kyvernov1.PolicyStatusApplyConfiguration `json:"status,omitempty"`
}

ClusterPolicyApplyConfiguration represents an declarative configuration of the ClusterPolicy type for use with apply.

func ClusterPolicy

func ClusterPolicy(name string) *ClusterPolicyApplyConfiguration

ClusterPolicy constructs an declarative configuration of the ClusterPolicy type for use with apply.

func (*ClusterPolicyApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*ClusterPolicyApplyConfiguration) WithCreationTimestamp

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *ClusterPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterPolicyApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithDeletionTimestamp

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*ClusterPolicyApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*ClusterPolicyApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*ClusterPolicyApplyConfiguration) WithResourceVersion

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*ClusterPolicyApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type ConditionApplyConfiguration

type ConditionApplyConfiguration struct {
	RawKey   *v1.JSON                   `json:"key,omitempty"`
	Operator *v2beta1.ConditionOperator `json:"operator,omitempty"`
	RawValue *v1.JSON                   `json:"value,omitempty"`
	Message  *string                    `json:"message,omitempty"`
}

ConditionApplyConfiguration represents an declarative configuration of the Condition type for use with apply.

func Condition

func Condition() *ConditionApplyConfiguration

ConditionApplyConfiguration constructs an declarative configuration of the Condition type for use with apply.

func (*ConditionApplyConfiguration) WithMessage

WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.

func (*ConditionApplyConfiguration) WithOperator

WithOperator sets the Operator field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Operator field is set to the value of the last call.

func (*ConditionApplyConfiguration) WithRawKey

WithRawKey sets the RawKey field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RawKey field is set to the value of the last call.

func (*ConditionApplyConfiguration) WithRawValue

WithRawValue sets the RawValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RawValue field is set to the value of the last call.

type DenyApplyConfiguration

type DenyApplyConfiguration struct {
	RawAnyAllConditions *AnyAllConditionsApplyConfiguration `json:"conditions,omitempty"`
}

DenyApplyConfiguration represents an declarative configuration of the Deny type for use with apply.

func Deny

func Deny() *DenyApplyConfiguration

DenyApplyConfiguration constructs an declarative configuration of the Deny type for use with apply.

func (*DenyApplyConfiguration) WithRawAnyAllConditions

WithRawAnyAllConditions sets the RawAnyAllConditions field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RawAnyAllConditions field is set to the value of the last call.

type ExceptionApplyConfiguration

type ExceptionApplyConfiguration struct {
	PolicyName *string  `json:"policyName,omitempty"`
	RuleNames  []string `json:"ruleNames,omitempty"`
}

ExceptionApplyConfiguration represents an declarative configuration of the Exception type for use with apply.

func Exception

func Exception() *ExceptionApplyConfiguration

ExceptionApplyConfiguration constructs an declarative configuration of the Exception type for use with apply.

func (*ExceptionApplyConfiguration) WithPolicyName

WithPolicyName sets the PolicyName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PolicyName field is set to the value of the last call.

func (*ExceptionApplyConfiguration) WithRuleNames

func (b *ExceptionApplyConfiguration) WithRuleNames(values ...string) *ExceptionApplyConfiguration

WithRuleNames adds the given value to the RuleNames field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the RuleNames field.

type ImageVerificationApplyConfiguration

type ImageVerificationApplyConfiguration struct {
	Type                     *v1.ImageVerificationType                             `json:"type,omitempty"`
	ImageReferences          []string                                              `json:"imageReferences,omitempty"`
	SkipImageReferences      []string                                              `json:"skipImageReferences,omitempty"`
	Attestors                []kyvernov1.AttestorSetApplyConfiguration             `json:"attestors,omitempty"`
	Attestations             []kyvernov1.AttestationApplyConfiguration             `json:"attestations,omitempty"`
	Repository               *string                                               `json:"repository,omitempty"`
	MutateDigest             *bool                                                 `json:"mutateDigest,omitempty"`
	VerifyDigest             *bool                                                 `json:"verifyDigest,omitempty"`
	Required                 *bool                                                 `json:"required,omitempty"`
	ImageRegistryCredentials *kyvernov1.ImageRegistryCredentialsApplyConfiguration `json:"imageRegistryCredentials,omitempty"`
	UseCache                 *bool                                                 `json:"useCache,omitempty"`
}

ImageVerificationApplyConfiguration represents an declarative configuration of the ImageVerification type for use with apply.

func ImageVerification

func ImageVerification() *ImageVerificationApplyConfiguration

ImageVerificationApplyConfiguration constructs an declarative configuration of the ImageVerification type for use with apply.

func (*ImageVerificationApplyConfiguration) WithAttestations

WithAttestations adds the given value to the Attestations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Attestations field.

func (*ImageVerificationApplyConfiguration) WithAttestors

WithAttestors adds the given value to the Attestors field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Attestors field.

func (*ImageVerificationApplyConfiguration) WithImageReferences

WithImageReferences adds the given value to the ImageReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the ImageReferences field.

func (*ImageVerificationApplyConfiguration) WithImageRegistryCredentials

WithImageRegistryCredentials sets the ImageRegistryCredentials field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ImageRegistryCredentials field is set to the value of the last call.

func (*ImageVerificationApplyConfiguration) WithMutateDigest

WithMutateDigest sets the MutateDigest field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MutateDigest field is set to the value of the last call.

func (*ImageVerificationApplyConfiguration) WithRepository

WithRepository sets the Repository field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Repository field is set to the value of the last call.

func (*ImageVerificationApplyConfiguration) WithRequired

WithRequired sets the Required field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Required field is set to the value of the last call.

func (*ImageVerificationApplyConfiguration) WithSkipImageReferences added in v1.12.0

WithSkipImageReferences adds the given value to the SkipImageReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the SkipImageReferences field.

func (*ImageVerificationApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

func (*ImageVerificationApplyConfiguration) WithUseCache

WithUseCache sets the UseCache field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UseCache field is set to the value of the last call.

func (*ImageVerificationApplyConfiguration) WithVerifyDigest

WithVerifyDigest sets the VerifyDigest field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the VerifyDigest field is set to the value of the last call.

type MatchResourcesApplyConfiguration

type MatchResourcesApplyConfiguration struct {
	Any *v1.ResourceFilters `json:"any,omitempty"`
	All *v1.ResourceFilters `json:"all,omitempty"`
}

MatchResourcesApplyConfiguration represents an declarative configuration of the MatchResources type for use with apply.

func MatchResources

func MatchResources() *MatchResourcesApplyConfiguration

MatchResourcesApplyConfiguration constructs an declarative configuration of the MatchResources type for use with apply.

func (*MatchResourcesApplyConfiguration) WithAll

WithAll sets the All field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the All field is set to the value of the last call.

func (*MatchResourcesApplyConfiguration) WithAny

WithAny sets the Any field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Any field is set to the value of the last call.

type PolicyApplyConfiguration

type PolicyApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",omitempty,inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *SpecApplyConfiguration                   `json:"spec,omitempty"`
	Status                           *kyvernov1.PolicyStatusApplyConfiguration `json:"status,omitempty"`
}

PolicyApplyConfiguration represents an declarative configuration of the Policy type for use with apply.

func Policy

func Policy(name, namespace string) *PolicyApplyConfiguration

Policy constructs an declarative configuration of the Policy type for use with apply.

func (*PolicyApplyConfiguration) WithAPIVersion

func (b *PolicyApplyConfiguration) WithAPIVersion(value string) *PolicyApplyConfiguration

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithAnnotations

func (b *PolicyApplyConfiguration) WithAnnotations(entries map[string]string) *PolicyApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*PolicyApplyConfiguration) WithCreationTimestamp

func (b *PolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PolicyApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *PolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PolicyApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithDeletionTimestamp

func (b *PolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PolicyApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithFinalizers

func (b *PolicyApplyConfiguration) WithFinalizers(values ...string) *PolicyApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*PolicyApplyConfiguration) WithGenerateName

func (b *PolicyApplyConfiguration) WithGenerateName(value string) *PolicyApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithGeneration

func (b *PolicyApplyConfiguration) WithGeneration(value int64) *PolicyApplyConfiguration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithLabels

func (b *PolicyApplyConfiguration) WithLabels(entries map[string]string) *PolicyApplyConfiguration

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*PolicyApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithNamespace

func (b *PolicyApplyConfiguration) WithNamespace(value string) *PolicyApplyConfiguration

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*PolicyApplyConfiguration) WithResourceVersion

func (b *PolicyApplyConfiguration) WithResourceVersion(value string) *PolicyApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*PolicyApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type PolicyExceptionApplyConfiguration

type PolicyExceptionApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",omitempty,inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *PolicyExceptionSpecApplyConfiguration `json:"spec,omitempty"`
}

PolicyExceptionApplyConfiguration represents an declarative configuration of the PolicyException type for use with apply.

func PolicyException

func PolicyException(name, namespace string) *PolicyExceptionApplyConfiguration

PolicyException constructs an declarative configuration of the PolicyException type for use with apply.

func (*PolicyExceptionApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*PolicyExceptionApplyConfiguration) WithCreationTimestamp

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *PolicyExceptionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PolicyExceptionApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithDeletionTimestamp

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*PolicyExceptionApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*PolicyExceptionApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*PolicyExceptionApplyConfiguration) WithResourceVersion

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*PolicyExceptionApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type PolicyExceptionSpecApplyConfiguration

type PolicyExceptionSpecApplyConfiguration struct {
	Background  *bool                                      `json:"background,omitempty"`
	Match       *MatchResourcesApplyConfiguration          `json:"match,omitempty"`
	Conditions  *AnyAllConditionsApplyConfiguration        `json:"conditions,omitempty"`
	Exceptions  []ExceptionApplyConfiguration              `json:"exceptions,omitempty"`
	PodSecurity []v1.PodSecurityStandardApplyConfiguration `json:"podSecurity,omitempty"`
}

PolicyExceptionSpecApplyConfiguration represents an declarative configuration of the PolicyExceptionSpec type for use with apply.

func PolicyExceptionSpec

func PolicyExceptionSpec() *PolicyExceptionSpecApplyConfiguration

PolicyExceptionSpecApplyConfiguration constructs an declarative configuration of the PolicyExceptionSpec type for use with apply.

func (*PolicyExceptionSpecApplyConfiguration) WithBackground

WithBackground sets the Background field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Background field is set to the value of the last call.

func (*PolicyExceptionSpecApplyConfiguration) WithConditions added in v1.12.0

WithConditions sets the Conditions field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Conditions field is set to the value of the last call.

func (*PolicyExceptionSpecApplyConfiguration) WithExceptions

WithExceptions adds the given value to the Exceptions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Exceptions field.

func (*PolicyExceptionSpecApplyConfiguration) WithMatch

WithMatch sets the Match field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Match field is set to the value of the last call.

func (*PolicyExceptionSpecApplyConfiguration) WithPodSecurity added in v1.12.0

WithPodSecurity adds the given value to the PodSecurity field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the PodSecurity field.

type RuleApplyConfiguration

type RuleApplyConfiguration struct {
	Name                   *string                                  `json:"name,omitempty"`
	Context                []v1.ContextEntryApplyConfiguration      `json:"context,omitempty"`
	MatchResources         *MatchResourcesApplyConfiguration        `json:"match,omitempty"`
	ExcludeResources       *MatchResourcesApplyConfiguration        `json:"exclude,omitempty"`
	ImageExtractors        *kyvernov1.ImageExtractorConfigs         `json:"imageExtractors,omitempty"`
	RawAnyAllConditions    *AnyAllConditionsApplyConfiguration      `json:"preconditions,omitempty"`
	CELPreconditions       []admissionregistrationv1.MatchCondition `json:"celPreconditions,omitempty"`
	Mutation               *v1.MutationApplyConfiguration           `json:"mutate,omitempty"`
	Validation             *ValidationApplyConfiguration            `json:"validate,omitempty"`
	Generation             *v1.GenerationApplyConfiguration         `json:"generate,omitempty"`
	VerifyImages           []ImageVerificationApplyConfiguration    `json:"verifyImages,omitempty"`
	SkipBackgroundRequests *bool                                    `json:"skipBackgroundRequests,omitempty"`
}

RuleApplyConfiguration represents an declarative configuration of the Rule type for use with apply.

func Rule

func Rule() *RuleApplyConfiguration

RuleApplyConfiguration constructs an declarative configuration of the Rule type for use with apply.

func (*RuleApplyConfiguration) WithCELPreconditions

WithCELPreconditions adds the given value to the CELPreconditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the CELPreconditions field.

func (*RuleApplyConfiguration) WithContext

WithContext adds the given value to the Context field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Context field.

func (*RuleApplyConfiguration) WithExcludeResources

WithExcludeResources sets the ExcludeResources field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ExcludeResources field is set to the value of the last call.

func (*RuleApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*RuleApplyConfiguration) WithImageExtractors

WithImageExtractors sets the ImageExtractors field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ImageExtractors field is set to the value of the last call.

func (*RuleApplyConfiguration) WithMatchResources

WithMatchResources sets the MatchResources field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MatchResources field is set to the value of the last call.

func (*RuleApplyConfiguration) WithMutation

WithMutation sets the Mutation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Mutation field is set to the value of the last call.

func (*RuleApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*RuleApplyConfiguration) WithRawAnyAllConditions

WithRawAnyAllConditions sets the RawAnyAllConditions field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RawAnyAllConditions field is set to the value of the last call.

func (*RuleApplyConfiguration) WithSkipBackgroundRequests added in v1.11.2

func (b *RuleApplyConfiguration) WithSkipBackgroundRequests(value bool) *RuleApplyConfiguration

WithSkipBackgroundRequests sets the SkipBackgroundRequests field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SkipBackgroundRequests field is set to the value of the last call.

func (*RuleApplyConfiguration) WithValidation

WithValidation sets the Validation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Validation field is set to the value of the last call.

func (*RuleApplyConfiguration) WithVerifyImages

WithVerifyImages adds the given value to the VerifyImages field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the VerifyImages field.

type SpecApplyConfiguration

type SpecApplyConfiguration struct {
	Rules                            []RuleApplyConfiguration                                      `json:"rules,omitempty"`
	ApplyRules                       *v1.ApplyRulesType                                            `json:"applyRules,omitempty"`
	FailurePolicy                    *v1.FailurePolicyType                                         `json:"failurePolicy,omitempty"`
	ValidationFailureAction          *v1.ValidationFailureAction                                   `json:"validationFailureAction,omitempty"`
	ValidationFailureActionOverrides []kyvernov1.ValidationFailureActionOverrideApplyConfiguration `json:"validationFailureActionOverrides,omitempty"`
	Admission                        *bool                                                         `json:"admission,omitempty"`
	Background                       *bool                                                         `json:"background,omitempty"`
	SchemaValidation                 *bool                                                         `json:"schemaValidation,omitempty"`
	WebhookTimeoutSeconds            *int32                                                        `json:"webhookTimeoutSeconds,omitempty"`
	MutateExistingOnPolicyUpdate     *bool                                                         `json:"mutateExistingOnPolicyUpdate,omitempty"`
	GenerateExistingOnPolicyUpdate   *bool                                                         `json:"generateExistingOnPolicyUpdate,omitempty"`
	GenerateExisting                 *bool                                                         `json:"generateExisting,omitempty"`
	UseServerSideApply               *bool                                                         `json:"useServerSideApply,omitempty"`
	WebhookConfiguration             *WebhookConfigurationApplyConfiguration                       `json:"webhookConfiguration,omitempty"`
}

SpecApplyConfiguration represents an declarative configuration of the Spec type for use with apply.

func Spec

func Spec() *SpecApplyConfiguration

SpecApplyConfiguration constructs an declarative configuration of the Spec type for use with apply.

func (*SpecApplyConfiguration) WithAdmission

func (b *SpecApplyConfiguration) WithAdmission(value bool) *SpecApplyConfiguration

WithAdmission sets the Admission field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Admission field is set to the value of the last call.

func (*SpecApplyConfiguration) WithApplyRules

WithApplyRules sets the ApplyRules field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ApplyRules field is set to the value of the last call.

func (*SpecApplyConfiguration) WithBackground

func (b *SpecApplyConfiguration) WithBackground(value bool) *SpecApplyConfiguration

WithBackground sets the Background field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Background field is set to the value of the last call.

func (*SpecApplyConfiguration) WithFailurePolicy

WithFailurePolicy sets the FailurePolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FailurePolicy field is set to the value of the last call.

func (*SpecApplyConfiguration) WithGenerateExisting

func (b *SpecApplyConfiguration) WithGenerateExisting(value bool) *SpecApplyConfiguration

WithGenerateExisting sets the GenerateExisting field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateExisting field is set to the value of the last call.

func (*SpecApplyConfiguration) WithGenerateExistingOnPolicyUpdate

func (b *SpecApplyConfiguration) WithGenerateExistingOnPolicyUpdate(value bool) *SpecApplyConfiguration

WithGenerateExistingOnPolicyUpdate sets the GenerateExistingOnPolicyUpdate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateExistingOnPolicyUpdate field is set to the value of the last call.

func (*SpecApplyConfiguration) WithMutateExistingOnPolicyUpdate

func (b *SpecApplyConfiguration) WithMutateExistingOnPolicyUpdate(value bool) *SpecApplyConfiguration

WithMutateExistingOnPolicyUpdate sets the MutateExistingOnPolicyUpdate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MutateExistingOnPolicyUpdate field is set to the value of the last call.

func (*SpecApplyConfiguration) WithRules

WithRules adds the given value to the Rules field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Rules field.

func (*SpecApplyConfiguration) WithSchemaValidation

func (b *SpecApplyConfiguration) WithSchemaValidation(value bool) *SpecApplyConfiguration

WithSchemaValidation sets the SchemaValidation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SchemaValidation field is set to the value of the last call.

func (*SpecApplyConfiguration) WithUseServerSideApply

func (b *SpecApplyConfiguration) WithUseServerSideApply(value bool) *SpecApplyConfiguration

WithUseServerSideApply sets the UseServerSideApply field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UseServerSideApply field is set to the value of the last call.

func (*SpecApplyConfiguration) WithValidationFailureAction

func (b *SpecApplyConfiguration) WithValidationFailureAction(value v1.ValidationFailureAction) *SpecApplyConfiguration

WithValidationFailureAction sets the ValidationFailureAction field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ValidationFailureAction field is set to the value of the last call.

func (*SpecApplyConfiguration) WithValidationFailureActionOverrides

WithValidationFailureActionOverrides adds the given value to the ValidationFailureActionOverrides field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the ValidationFailureActionOverrides field.

func (*SpecApplyConfiguration) WithWebhookConfiguration added in v1.12.0

WithWebhookConfiguration sets the WebhookConfiguration field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the WebhookConfiguration field is set to the value of the last call.

func (*SpecApplyConfiguration) WithWebhookTimeoutSeconds

func (b *SpecApplyConfiguration) WithWebhookTimeoutSeconds(value int32) *SpecApplyConfiguration

WithWebhookTimeoutSeconds sets the WebhookTimeoutSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the WebhookTimeoutSeconds field is set to the value of the last call.

type ValidationApplyConfiguration

type ValidationApplyConfiguration struct {
	Message           *string                                  `json:"message,omitempty"`
	Manifests         *v1.ManifestsApplyConfiguration          `json:"manifests,omitempty"`
	ForEachValidation []v1.ForEachValidationApplyConfiguration `json:"foreach,omitempty"`
	RawPattern        *apiextensionsv1.JSON                    `json:"pattern,omitempty"`
	RawAnyPattern     *apiextensionsv1.JSON                    `json:"anyPattern,omitempty"`
	Deny              *DenyApplyConfiguration                  `json:"deny,omitempty"`
	PodSecurity       *v1.PodSecurityApplyConfiguration        `json:"podSecurity,omitempty"`
	CEL               *v1.CELApplyConfiguration                `json:"cel,omitempty"`
}

ValidationApplyConfiguration represents an declarative configuration of the Validation type for use with apply.

func Validation

func Validation() *ValidationApplyConfiguration

ValidationApplyConfiguration constructs an declarative configuration of the Validation type for use with apply.

func (*ValidationApplyConfiguration) WithCEL

WithCEL sets the CEL field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CEL field is set to the value of the last call.

func (*ValidationApplyConfiguration) WithDeny

WithDeny sets the Deny field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Deny field is set to the value of the last call.

func (*ValidationApplyConfiguration) WithForEachValidation

WithForEachValidation adds the given value to the ForEachValidation field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the ForEachValidation field.

func (*ValidationApplyConfiguration) WithManifests

WithManifests sets the Manifests field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Manifests field is set to the value of the last call.

func (*ValidationApplyConfiguration) WithMessage

WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.

func (*ValidationApplyConfiguration) WithPodSecurity

WithPodSecurity sets the PodSecurity field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PodSecurity field is set to the value of the last call.

func (*ValidationApplyConfiguration) WithRawAnyPattern

WithRawAnyPattern sets the RawAnyPattern field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RawAnyPattern field is set to the value of the last call.

func (*ValidationApplyConfiguration) WithRawPattern

WithRawPattern sets the RawPattern field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RawPattern field is set to the value of the last call.

type WebhookConfigurationApplyConfiguration added in v1.12.0

type WebhookConfigurationApplyConfiguration struct {
	MatchConditions []v1.MatchCondition `json:"matchConditions,omitempty"`
}

WebhookConfigurationApplyConfiguration represents an declarative configuration of the WebhookConfiguration type for use with apply.

func WebhookConfiguration added in v1.12.0

func WebhookConfiguration() *WebhookConfigurationApplyConfiguration

WebhookConfigurationApplyConfiguration constructs an declarative configuration of the WebhookConfiguration type for use with apply.

func (*WebhookConfigurationApplyConfiguration) WithMatchConditions added in v1.12.0

WithMatchConditions adds the given value to the MatchConditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the MatchConditions field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL