Documentation ¶
Index ¶
- type AnyAllConditionsApplyConfiguration
- type CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithAPIVersion(value string) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithFinalizers(values ...string) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithGenerateName(value string) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithGeneration(value int64) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithKind(value string) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithLabels(entries map[string]string) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithName(value string) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithNamespace(value string) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithResourceVersion(value string) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithSpec(value *CleanupPolicySpecApplyConfiguration) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithStatus(value *CleanupPolicyStatusApplyConfiguration) *CleanupPolicyApplyConfiguration
- func (b *CleanupPolicyApplyConfiguration) WithUID(value types.UID) *CleanupPolicyApplyConfiguration
- type CleanupPolicySpecApplyConfiguration
- func (b *CleanupPolicySpecApplyConfiguration) WithConditions(value *AnyAllConditionsApplyConfiguration) *CleanupPolicySpecApplyConfiguration
- func (b *CleanupPolicySpecApplyConfiguration) WithContext(values ...*v1.ContextEntryApplyConfiguration) *CleanupPolicySpecApplyConfiguration
- func (b *CleanupPolicySpecApplyConfiguration) WithExcludeResources(value *MatchResourcesApplyConfiguration) *CleanupPolicySpecApplyConfiguration
- func (b *CleanupPolicySpecApplyConfiguration) WithMatchResources(value *MatchResourcesApplyConfiguration) *CleanupPolicySpecApplyConfiguration
- func (b *CleanupPolicySpecApplyConfiguration) WithSchedule(value string) *CleanupPolicySpecApplyConfiguration
- type CleanupPolicyStatusApplyConfiguration
- type ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithAPIVersion(value string) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithFinalizers(values ...string) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithGenerateName(value string) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithGeneration(value int64) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithKind(value string) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithLabels(entries map[string]string) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithName(value string) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithNamespace(value string) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithResourceVersion(value string) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithSpec(value *CleanupPolicySpecApplyConfiguration) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithStatus(value *CleanupPolicyStatusApplyConfiguration) *ClusterCleanupPolicyApplyConfiguration
- func (b *ClusterCleanupPolicyApplyConfiguration) WithUID(value types.UID) *ClusterCleanupPolicyApplyConfiguration
- type ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithAPIVersion(value string) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithFinalizers(values ...string) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithGenerateName(value string) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithGeneration(value int64) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithKind(value string) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithLabels(entries map[string]string) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithName(value string) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithNamespace(value string) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithResourceVersion(value string) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithSpec(value *SpecApplyConfiguration) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithStatus(value *kyvernov1.PolicyStatusApplyConfiguration) *ClusterPolicyApplyConfiguration
- func (b *ClusterPolicyApplyConfiguration) WithUID(value types.UID) *ClusterPolicyApplyConfiguration
- type ConditionApplyConfiguration
- func (b *ConditionApplyConfiguration) WithMessage(value string) *ConditionApplyConfiguration
- func (b *ConditionApplyConfiguration) WithOperator(value v2beta1.ConditionOperator) *ConditionApplyConfiguration
- func (b *ConditionApplyConfiguration) WithRawKey(value v1.JSON) *ConditionApplyConfiguration
- func (b *ConditionApplyConfiguration) WithRawValue(value v1.JSON) *ConditionApplyConfiguration
- type DenyApplyConfiguration
- type ExceptionApplyConfiguration
- type ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithAttestations(values ...*kyvernov1.AttestationApplyConfiguration) *ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithAttestors(values ...*kyvernov1.AttestorSetApplyConfiguration) *ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithImageReferences(values ...string) *ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithImageRegistryCredentials(value *kyvernov1.ImageRegistryCredentialsApplyConfiguration) *ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithMutateDigest(value bool) *ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithRepository(value string) *ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithRequired(value bool) *ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithSkipImageReferences(values ...string) *ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithType(value v1.ImageVerificationType) *ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithUseCache(value bool) *ImageVerificationApplyConfiguration
- func (b *ImageVerificationApplyConfiguration) WithVerifyDigest(value bool) *ImageVerificationApplyConfiguration
- type MatchResourcesApplyConfiguration
- type PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithAPIVersion(value string) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithAnnotations(entries map[string]string) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithFinalizers(values ...string) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithGenerateName(value string) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithGeneration(value int64) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithKind(value string) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithLabels(entries map[string]string) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithName(value string) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithNamespace(value string) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithResourceVersion(value string) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithSpec(value *SpecApplyConfiguration) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithStatus(value *kyvernov1.PolicyStatusApplyConfiguration) *PolicyApplyConfiguration
- func (b *PolicyApplyConfiguration) WithUID(value types.UID) *PolicyApplyConfiguration
- type PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithAPIVersion(value string) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithAnnotations(entries map[string]string) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithFinalizers(values ...string) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithGenerateName(value string) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithGeneration(value int64) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithKind(value string) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithLabels(entries map[string]string) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithName(value string) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithNamespace(value string) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithResourceVersion(value string) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithSpec(value *PolicyExceptionSpecApplyConfiguration) *PolicyExceptionApplyConfiguration
- func (b *PolicyExceptionApplyConfiguration) WithUID(value types.UID) *PolicyExceptionApplyConfiguration
- type PolicyExceptionSpecApplyConfiguration
- func (b *PolicyExceptionSpecApplyConfiguration) WithBackground(value bool) *PolicyExceptionSpecApplyConfiguration
- func (b *PolicyExceptionSpecApplyConfiguration) WithConditions(value *AnyAllConditionsApplyConfiguration) *PolicyExceptionSpecApplyConfiguration
- func (b *PolicyExceptionSpecApplyConfiguration) WithExceptions(values ...*ExceptionApplyConfiguration) *PolicyExceptionSpecApplyConfiguration
- func (b *PolicyExceptionSpecApplyConfiguration) WithMatch(value *MatchResourcesApplyConfiguration) *PolicyExceptionSpecApplyConfiguration
- func (b *PolicyExceptionSpecApplyConfiguration) WithPodSecurity(values ...*v1.PodSecurityStandardApplyConfiguration) *PolicyExceptionSpecApplyConfiguration
- type RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithCELPreconditions(values ...admissionregistrationv1.MatchCondition) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithContext(values ...*v1.ContextEntryApplyConfiguration) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithExcludeResources(value *MatchResourcesApplyConfiguration) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithGeneration(value *v1.GenerationApplyConfiguration) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithImageExtractors(value kyvernov1.ImageExtractorConfigs) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithMatchResources(value *MatchResourcesApplyConfiguration) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithMutation(value *v1.MutationApplyConfiguration) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithName(value string) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithRawAnyAllConditions(value *AnyAllConditionsApplyConfiguration) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithSkipBackgroundRequests(value bool) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithValidation(value *ValidationApplyConfiguration) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithVerifyImages(values ...*ImageVerificationApplyConfiguration) *RuleApplyConfiguration
- type SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithAdmission(value bool) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithApplyRules(value v1.ApplyRulesType) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithBackground(value bool) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithFailurePolicy(value v1.FailurePolicyType) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithGenerateExisting(value bool) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithGenerateExistingOnPolicyUpdate(value bool) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithMutateExistingOnPolicyUpdate(value bool) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithRules(values ...*RuleApplyConfiguration) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithSchemaValidation(value bool) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithUseServerSideApply(value bool) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithValidationFailureAction(value v1.ValidationFailureAction) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithValidationFailureActionOverrides(values ...*kyvernov1.ValidationFailureActionOverrideApplyConfiguration) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithWebhookConfiguration(value *WebhookConfigurationApplyConfiguration) *SpecApplyConfiguration
- func (b *SpecApplyConfiguration) WithWebhookTimeoutSeconds(value int32) *SpecApplyConfiguration
- type ValidationApplyConfiguration
- func (b *ValidationApplyConfiguration) WithCEL(value *v1.CELApplyConfiguration) *ValidationApplyConfiguration
- func (b *ValidationApplyConfiguration) WithDeny(value *DenyApplyConfiguration) *ValidationApplyConfiguration
- func (b *ValidationApplyConfiguration) WithForEachValidation(values ...*v1.ForEachValidationApplyConfiguration) *ValidationApplyConfiguration
- func (b *ValidationApplyConfiguration) WithManifests(value *v1.ManifestsApplyConfiguration) *ValidationApplyConfiguration
- func (b *ValidationApplyConfiguration) WithMessage(value string) *ValidationApplyConfiguration
- func (b *ValidationApplyConfiguration) WithPodSecurity(value *v1.PodSecurityApplyConfiguration) *ValidationApplyConfiguration
- func (b *ValidationApplyConfiguration) WithRawAnyPattern(value apiextensionsv1.JSON) *ValidationApplyConfiguration
- func (b *ValidationApplyConfiguration) WithRawPattern(value apiextensionsv1.JSON) *ValidationApplyConfiguration
- type WebhookConfigurationApplyConfiguration
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 ¶
func (b *AnyAllConditionsApplyConfiguration) WithAllConditions(values ...*ConditionApplyConfiguration) *AnyAllConditionsApplyConfiguration
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 ¶
func (b *AnyAllConditionsApplyConfiguration) WithAnyConditions(values ...*ConditionApplyConfiguration) *AnyAllConditionsApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithAPIVersion(value string) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithFinalizers(values ...string) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithGenerateName(value string) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithGeneration(value int64) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithKind(value string) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithLabels(entries map[string]string) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithName(value string) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithNamespace(value string) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithResourceVersion(value string) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithSpec(value *CleanupPolicySpecApplyConfiguration) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithStatus(value *CleanupPolicyStatusApplyConfiguration) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicyApplyConfiguration) WithUID(value types.UID) *CleanupPolicyApplyConfiguration
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 ¶
func (b *CleanupPolicySpecApplyConfiguration) WithConditions(value *AnyAllConditionsApplyConfiguration) *CleanupPolicySpecApplyConfiguration
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 ¶
func (b *CleanupPolicySpecApplyConfiguration) WithContext(values ...*v1.ContextEntryApplyConfiguration) *CleanupPolicySpecApplyConfiguration
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 ¶
func (b *CleanupPolicySpecApplyConfiguration) WithExcludeResources(value *MatchResourcesApplyConfiguration) *CleanupPolicySpecApplyConfiguration
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 ¶
func (b *CleanupPolicySpecApplyConfiguration) WithMatchResources(value *MatchResourcesApplyConfiguration) *CleanupPolicySpecApplyConfiguration
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 ¶
func (b *CleanupPolicySpecApplyConfiguration) WithSchedule(value string) *CleanupPolicySpecApplyConfiguration
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 ¶
func (b *CleanupPolicyStatusApplyConfiguration) WithConditions(values ...v1.Condition) *CleanupPolicyStatusApplyConfiguration
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 ¶
func (b *CleanupPolicyStatusApplyConfiguration) WithLastExecutionTime(value v1.Time) *CleanupPolicyStatusApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithAPIVersion(value string) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithFinalizers(values ...string) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithGenerateName(value string) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithGeneration(value int64) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithKind(value string) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithLabels(entries map[string]string) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithName(value string) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithNamespace(value string) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithResourceVersion(value string) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithSpec(value *CleanupPolicySpecApplyConfiguration) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithStatus(value *CleanupPolicyStatusApplyConfiguration) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterCleanupPolicyApplyConfiguration) WithUID(value types.UID) *ClusterCleanupPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithAPIVersion(value string) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithFinalizers(values ...string) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithGenerateName(value string) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithGeneration(value int64) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithKind(value string) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithLabels(entries map[string]string) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithName(value string) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithNamespace(value string) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithResourceVersion(value string) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithSpec(value *SpecApplyConfiguration) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithStatus(value *kyvernov1.PolicyStatusApplyConfiguration) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ClusterPolicyApplyConfiguration) WithUID(value types.UID) *ClusterPolicyApplyConfiguration
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 ¶
func (b *ConditionApplyConfiguration) WithMessage(value string) *ConditionApplyConfiguration
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 ¶
func (b *ConditionApplyConfiguration) WithOperator(value v2beta1.ConditionOperator) *ConditionApplyConfiguration
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 ¶
func (b *ConditionApplyConfiguration) WithRawKey(value v1.JSON) *ConditionApplyConfiguration
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 ¶
func (b *ConditionApplyConfiguration) WithRawValue(value v1.JSON) *ConditionApplyConfiguration
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 ¶
func (b *DenyApplyConfiguration) WithRawAnyAllConditions(value *AnyAllConditionsApplyConfiguration) *DenyApplyConfiguration
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 ¶
func (b *ExceptionApplyConfiguration) WithPolicyName(value string) *ExceptionApplyConfiguration
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 ¶
func (b *ImageVerificationApplyConfiguration) WithAttestations(values ...*kyvernov1.AttestationApplyConfiguration) *ImageVerificationApplyConfiguration
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 ¶
func (b *ImageVerificationApplyConfiguration) WithAttestors(values ...*kyvernov1.AttestorSetApplyConfiguration) *ImageVerificationApplyConfiguration
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 ¶
func (b *ImageVerificationApplyConfiguration) WithImageReferences(values ...string) *ImageVerificationApplyConfiguration
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 ¶
func (b *ImageVerificationApplyConfiguration) WithImageRegistryCredentials(value *kyvernov1.ImageRegistryCredentialsApplyConfiguration) *ImageVerificationApplyConfiguration
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 ¶
func (b *ImageVerificationApplyConfiguration) WithMutateDigest(value bool) *ImageVerificationApplyConfiguration
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 ¶
func (b *ImageVerificationApplyConfiguration) WithRepository(value string) *ImageVerificationApplyConfiguration
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 ¶
func (b *ImageVerificationApplyConfiguration) WithRequired(value bool) *ImageVerificationApplyConfiguration
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
func (b *ImageVerificationApplyConfiguration) WithSkipImageReferences(values ...string) *ImageVerificationApplyConfiguration
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 ¶
func (b *ImageVerificationApplyConfiguration) WithType(value v1.ImageVerificationType) *ImageVerificationApplyConfiguration
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 ¶
func (b *ImageVerificationApplyConfiguration) WithUseCache(value bool) *ImageVerificationApplyConfiguration
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 ¶
func (b *ImageVerificationApplyConfiguration) WithVerifyDigest(value bool) *ImageVerificationApplyConfiguration
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 ¶
func (b *MatchResourcesApplyConfiguration) WithAll(value v1.ResourceFilters) *MatchResourcesApplyConfiguration
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 ¶
func (b *MatchResourcesApplyConfiguration) WithAny(value v1.ResourceFilters) *MatchResourcesApplyConfiguration
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 ¶
func (b *PolicyApplyConfiguration) WithKind(value string) *PolicyApplyConfiguration
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 ¶
func (b *PolicyApplyConfiguration) WithName(value string) *PolicyApplyConfiguration
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 ¶
func (b *PolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PolicyApplyConfiguration
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 ¶
func (b *PolicyApplyConfiguration) WithSpec(value *SpecApplyConfiguration) *PolicyApplyConfiguration
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 ¶
func (b *PolicyApplyConfiguration) WithStatus(value *kyvernov1.PolicyStatusApplyConfiguration) *PolicyApplyConfiguration
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 ¶
func (b *PolicyApplyConfiguration) WithUID(value types.UID) *PolicyApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithAPIVersion(value string) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithAnnotations(entries map[string]string) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithFinalizers(values ...string) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithGenerateName(value string) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithGeneration(value int64) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithKind(value string) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithLabels(entries map[string]string) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithName(value string) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithNamespace(value string) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithResourceVersion(value string) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithSpec(value *PolicyExceptionSpecApplyConfiguration) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionApplyConfiguration) WithUID(value types.UID) *PolicyExceptionApplyConfiguration
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 ¶
func (b *PolicyExceptionSpecApplyConfiguration) WithBackground(value bool) *PolicyExceptionSpecApplyConfiguration
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
func (b *PolicyExceptionSpecApplyConfiguration) WithConditions(value *AnyAllConditionsApplyConfiguration) *PolicyExceptionSpecApplyConfiguration
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 ¶
func (b *PolicyExceptionSpecApplyConfiguration) WithExceptions(values ...*ExceptionApplyConfiguration) *PolicyExceptionSpecApplyConfiguration
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 ¶
func (b *PolicyExceptionSpecApplyConfiguration) WithMatch(value *MatchResourcesApplyConfiguration) *PolicyExceptionSpecApplyConfiguration
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
func (b *PolicyExceptionSpecApplyConfiguration) WithPodSecurity(values ...*v1.PodSecurityStandardApplyConfiguration) *PolicyExceptionSpecApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithCELPreconditions(values ...admissionregistrationv1.MatchCondition) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithContext(values ...*v1.ContextEntryApplyConfiguration) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithExcludeResources(value *MatchResourcesApplyConfiguration) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithGeneration(value *v1.GenerationApplyConfiguration) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithImageExtractors(value kyvernov1.ImageExtractorConfigs) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithMatchResources(value *MatchResourcesApplyConfiguration) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithMutation(value *v1.MutationApplyConfiguration) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithName(value string) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithRawAnyAllConditions(value *AnyAllConditionsApplyConfiguration) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithValidation(value *ValidationApplyConfiguration) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithVerifyImages(values ...*ImageVerificationApplyConfiguration) *RuleApplyConfiguration
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 ¶
func (b *SpecApplyConfiguration) WithApplyRules(value v1.ApplyRulesType) *SpecApplyConfiguration
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 ¶
func (b *SpecApplyConfiguration) WithFailurePolicy(value v1.FailurePolicyType) *SpecApplyConfiguration
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 ¶
func (b *SpecApplyConfiguration) WithRules(values ...*RuleApplyConfiguration) *SpecApplyConfiguration
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 ¶
func (b *SpecApplyConfiguration) WithValidationFailureActionOverrides(values ...*kyvernov1.ValidationFailureActionOverrideApplyConfiguration) *SpecApplyConfiguration
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
func (b *SpecApplyConfiguration) WithWebhookConfiguration(value *WebhookConfigurationApplyConfiguration) *SpecApplyConfiguration
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 ¶
func (b *ValidationApplyConfiguration) WithCEL(value *v1.CELApplyConfiguration) *ValidationApplyConfiguration
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 ¶
func (b *ValidationApplyConfiguration) WithDeny(value *DenyApplyConfiguration) *ValidationApplyConfiguration
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 ¶
func (b *ValidationApplyConfiguration) WithForEachValidation(values ...*v1.ForEachValidationApplyConfiguration) *ValidationApplyConfiguration
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 ¶
func (b *ValidationApplyConfiguration) WithManifests(value *v1.ManifestsApplyConfiguration) *ValidationApplyConfiguration
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 ¶
func (b *ValidationApplyConfiguration) WithMessage(value string) *ValidationApplyConfiguration
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 ¶
func (b *ValidationApplyConfiguration) WithPodSecurity(value *v1.PodSecurityApplyConfiguration) *ValidationApplyConfiguration
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 ¶
func (b *ValidationApplyConfiguration) WithRawAnyPattern(value apiextensionsv1.JSON) *ValidationApplyConfiguration
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 ¶
func (b *ValidationApplyConfiguration) WithRawPattern(value apiextensionsv1.JSON) *ValidationApplyConfiguration
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
func (b *WebhookConfigurationApplyConfiguration) WithMatchConditions(values ...v1.MatchCondition) *WebhookConfigurationApplyConfiguration
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.
Source Files ¶
- anyallconditions.go
- cleanuppolicy.go
- cleanuppolicyspec.go
- cleanuppolicystatus.go
- clustercleanuppolicy.go
- clusterpolicy.go
- condition.go
- deny.go
- exception.go
- imageverification.go
- matchresources.go
- policy.go
- policyexception.go
- policyexceptionspec.go
- rule.go
- spec.go
- validation.go
- webhookconfiguration.go