v1beta1

package
v0.21.13-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowedCSIDriverApplyConfiguration

type AllowedCSIDriverApplyConfiguration struct {
	Name *string `json:"name,omitempty"`
}

AllowedCSIDriverApplyConfiguration represents an declarative configuration of the AllowedCSIDriver type for use with apply.

func AllowedCSIDriver

func AllowedCSIDriver() *AllowedCSIDriverApplyConfiguration

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

func (*AllowedCSIDriverApplyConfiguration) WithName

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

type AllowedFlexVolumeApplyConfiguration

type AllowedFlexVolumeApplyConfiguration struct {
	Driver *string `json:"driver,omitempty"`
}

AllowedFlexVolumeApplyConfiguration represents an declarative configuration of the AllowedFlexVolume type for use with apply.

func AllowedFlexVolume

func AllowedFlexVolume() *AllowedFlexVolumeApplyConfiguration

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

func (*AllowedFlexVolumeApplyConfiguration) WithDriver

WithDriver sets the Driver 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 Driver field is set to the value of the last call.

type AllowedHostPathApplyConfiguration

type AllowedHostPathApplyConfiguration struct {
	PathPrefix *string `json:"pathPrefix,omitempty"`
	ReadOnly   *bool   `json:"readOnly,omitempty"`
}

AllowedHostPathApplyConfiguration represents an declarative configuration of the AllowedHostPath type for use with apply.

func AllowedHostPath

func AllowedHostPath() *AllowedHostPathApplyConfiguration

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

func (*AllowedHostPathApplyConfiguration) WithPathPrefix

WithPathPrefix sets the PathPrefix 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 PathPrefix field is set to the value of the last call.

func (*AllowedHostPathApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

type EvictionApplyConfiguration

type EvictionApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	DeleteOptions                    *v1.DeleteOptionsApplyConfiguration `json:"deleteOptions,omitempty"`
}

EvictionApplyConfiguration represents an declarative configuration of the Eviction type for use with apply.

func Eviction

func Eviction(name, namespace string) *EvictionApplyConfiguration

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

func ExtractEviction

func ExtractEviction(eviction *v1beta1.Eviction, fieldManager string) (*EvictionApplyConfiguration, error)

ExtractEviction extracts the applied configuration owned by fieldManager from eviction. If no managedFields are found in eviction for fieldManager, a EvictionApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. Is is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. eviction must be a unmodified Eviction API object that was retrieved from the Kubernetes API. ExtractEviction provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!

func (*EvictionApplyConfiguration) WithAPIVersion

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

func (*EvictionApplyConfiguration) WithAnnotations

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

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 (*EvictionApplyConfiguration) WithClusterName

WithClusterName sets the ClusterName 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 ClusterName field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithCreationTimestamp

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

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 (*EvictionApplyConfiguration) WithDeleteOptions

WithDeleteOptions sets the DeleteOptions 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 DeleteOptions field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*EvictionApplyConfiguration) WithDeletionTimestamp

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

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 (*EvictionApplyConfiguration) WithFinalizers

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

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 (*EvictionApplyConfiguration) WithGenerateName

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

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 (*EvictionApplyConfiguration) WithGeneration

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

func (*EvictionApplyConfiguration) WithKind

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

func (*EvictionApplyConfiguration) WithLabels

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

func (*EvictionApplyConfiguration) WithName

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

func (*EvictionApplyConfiguration) WithNamespace

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

func (*EvictionApplyConfiguration) WithOwnerReferences

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

func (*EvictionApplyConfiguration) WithResourceVersion

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

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.

WithSelfLink sets the SelfLink 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 SelfLink field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithUID

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

type FSGroupStrategyOptionsApplyConfiguration

type FSGroupStrategyOptionsApplyConfiguration struct {
	Rule   *v1beta1.FSGroupStrategyType `json:"rule,omitempty"`
	Ranges []IDRangeApplyConfiguration  `json:"ranges,omitempty"`
}

FSGroupStrategyOptionsApplyConfiguration represents an declarative configuration of the FSGroupStrategyOptions type for use with apply.

func FSGroupStrategyOptions

func FSGroupStrategyOptions() *FSGroupStrategyOptionsApplyConfiguration

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

func (*FSGroupStrategyOptionsApplyConfiguration) WithRanges

WithRanges adds the given value to the Ranges 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 Ranges field.

func (*FSGroupStrategyOptionsApplyConfiguration) WithRule

WithRule sets the Rule 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 Rule field is set to the value of the last call.

type HostPortRangeApplyConfiguration

type HostPortRangeApplyConfiguration struct {
	Min *int32 `json:"min,omitempty"`
	Max *int32 `json:"max,omitempty"`
}

HostPortRangeApplyConfiguration represents an declarative configuration of the HostPortRange type for use with apply.

func HostPortRange

func HostPortRange() *HostPortRangeApplyConfiguration

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

func (*HostPortRangeApplyConfiguration) WithMax

WithMax sets the Max 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 Max field is set to the value of the last call.

func (*HostPortRangeApplyConfiguration) WithMin

WithMin sets the Min 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 Min field is set to the value of the last call.

type IDRangeApplyConfiguration

type IDRangeApplyConfiguration struct {
	Min *int64 `json:"min,omitempty"`
	Max *int64 `json:"max,omitempty"`
}

IDRangeApplyConfiguration represents an declarative configuration of the IDRange type for use with apply.

func IDRange

func IDRange() *IDRangeApplyConfiguration

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

func (*IDRangeApplyConfiguration) WithMax

WithMax sets the Max 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 Max field is set to the value of the last call.

func (*IDRangeApplyConfiguration) WithMin

WithMin sets the Min 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 Min field is set to the value of the last call.

type PodDisruptionBudgetApplyConfiguration

type PodDisruptionBudgetApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *PodDisruptionBudgetSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *PodDisruptionBudgetStatusApplyConfiguration `json:"status,omitempty"`
}

PodDisruptionBudgetApplyConfiguration represents an declarative configuration of the PodDisruptionBudget type for use with apply.

func ExtractPodDisruptionBudget

func ExtractPodDisruptionBudget(podDisruptionBudget *policyv1beta1.PodDisruptionBudget, fieldManager string) (*PodDisruptionBudgetApplyConfiguration, error)

ExtractPodDisruptionBudget extracts the applied configuration owned by fieldManager from podDisruptionBudget. If no managedFields are found in podDisruptionBudget for fieldManager, a PodDisruptionBudgetApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. Is is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. podDisruptionBudget must be a unmodified PodDisruptionBudget API object that was retrieved from the Kubernetes API. ExtractPodDisruptionBudget provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!

func PodDisruptionBudget

func PodDisruptionBudget(name, namespace string) *PodDisruptionBudgetApplyConfiguration

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

func (*PodDisruptionBudgetApplyConfiguration) WithAPIVersion

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

func (*PodDisruptionBudgetApplyConfiguration) WithAnnotations

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

func (*PodDisruptionBudgetApplyConfiguration) WithClusterName

WithClusterName sets the ClusterName 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 ClusterName field is set to the value of the last call.

func (*PodDisruptionBudgetApplyConfiguration) WithCreationTimestamp

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

func (*PodDisruptionBudgetApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*PodDisruptionBudgetApplyConfiguration) WithDeletionTimestamp

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

func (*PodDisruptionBudgetApplyConfiguration) WithFinalizers

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

func (*PodDisruptionBudgetApplyConfiguration) WithGenerateName

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

func (*PodDisruptionBudgetApplyConfiguration) WithGeneration

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

func (*PodDisruptionBudgetApplyConfiguration) WithKind

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

func (*PodDisruptionBudgetApplyConfiguration) WithLabels

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

func (*PodDisruptionBudgetApplyConfiguration) WithName

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

func (*PodDisruptionBudgetApplyConfiguration) WithNamespace

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

func (*PodDisruptionBudgetApplyConfiguration) WithOwnerReferences

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

func (*PodDisruptionBudgetApplyConfiguration) WithResourceVersion

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

WithSelfLink sets the SelfLink 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 SelfLink field is set to the value of the last call.

func (*PodDisruptionBudgetApplyConfiguration) WithSpec

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

func (*PodDisruptionBudgetApplyConfiguration) WithStatus

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

func (*PodDisruptionBudgetApplyConfiguration) WithUID

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

type PodDisruptionBudgetSpecApplyConfiguration

type PodDisruptionBudgetSpecApplyConfiguration struct {
	MinAvailable   *intstr.IntOrString                 `json:"minAvailable,omitempty"`
	Selector       *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
	MaxUnavailable *intstr.IntOrString                 `json:"maxUnavailable,omitempty"`
}

PodDisruptionBudgetSpecApplyConfiguration represents an declarative configuration of the PodDisruptionBudgetSpec type for use with apply.

func PodDisruptionBudgetSpec

func PodDisruptionBudgetSpec() *PodDisruptionBudgetSpecApplyConfiguration

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

func (*PodDisruptionBudgetSpecApplyConfiguration) WithMaxUnavailable

WithMaxUnavailable sets the MaxUnavailable 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 MaxUnavailable field is set to the value of the last call.

func (*PodDisruptionBudgetSpecApplyConfiguration) WithMinAvailable

WithMinAvailable sets the MinAvailable 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 MinAvailable field is set to the value of the last call.

func (*PodDisruptionBudgetSpecApplyConfiguration) WithSelector

WithSelector sets the Selector 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 Selector field is set to the value of the last call.

type PodDisruptionBudgetStatusApplyConfiguration

type PodDisruptionBudgetStatusApplyConfiguration struct {
	ObservedGeneration *int64                               `json:"observedGeneration,omitempty"`
	DisruptedPods      map[string]v1.Time                   `json:"disruptedPods,omitempty"`
	DisruptionsAllowed *int32                               `json:"disruptionsAllowed,omitempty"`
	CurrentHealthy     *int32                               `json:"currentHealthy,omitempty"`
	DesiredHealthy     *int32                               `json:"desiredHealthy,omitempty"`
	ExpectedPods       *int32                               `json:"expectedPods,omitempty"`
	Conditions         []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
}

PodDisruptionBudgetStatusApplyConfiguration represents an declarative configuration of the PodDisruptionBudgetStatus type for use with apply.

func PodDisruptionBudgetStatus

func PodDisruptionBudgetStatus() *PodDisruptionBudgetStatusApplyConfiguration

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

func (*PodDisruptionBudgetStatusApplyConfiguration) WithConditions

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

func (*PodDisruptionBudgetStatusApplyConfiguration) WithCurrentHealthy

WithCurrentHealthy sets the CurrentHealthy 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 CurrentHealthy field is set to the value of the last call.

func (*PodDisruptionBudgetStatusApplyConfiguration) WithDesiredHealthy

WithDesiredHealthy sets the DesiredHealthy 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 DesiredHealthy field is set to the value of the last call.

func (*PodDisruptionBudgetStatusApplyConfiguration) WithDisruptedPods

WithDisruptedPods puts the entries into the DisruptedPods 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 DisruptedPods field, overwriting an existing map entries in DisruptedPods field with the same key.

func (*PodDisruptionBudgetStatusApplyConfiguration) WithDisruptionsAllowed

WithDisruptionsAllowed sets the DisruptionsAllowed 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 DisruptionsAllowed field is set to the value of the last call.

func (*PodDisruptionBudgetStatusApplyConfiguration) WithExpectedPods

WithExpectedPods sets the ExpectedPods 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 ExpectedPods field is set to the value of the last call.

func (*PodDisruptionBudgetStatusApplyConfiguration) WithObservedGeneration

WithObservedGeneration sets the ObservedGeneration 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 ObservedGeneration field is set to the value of the last call.

type PodSecurityPolicyApplyConfiguration

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

PodSecurityPolicyApplyConfiguration represents an declarative configuration of the PodSecurityPolicy type for use with apply.

func ExtractPodSecurityPolicy

func ExtractPodSecurityPolicy(podSecurityPolicy *policyv1beta1.PodSecurityPolicy, fieldManager string) (*PodSecurityPolicyApplyConfiguration, error)

ExtractPodSecurityPolicy extracts the applied configuration owned by fieldManager from podSecurityPolicy. If no managedFields are found in podSecurityPolicy for fieldManager, a PodSecurityPolicyApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. Is is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. podSecurityPolicy must be a unmodified PodSecurityPolicy API object that was retrieved from the Kubernetes API. ExtractPodSecurityPolicy provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!

func PodSecurityPolicy

func PodSecurityPolicy(name string) *PodSecurityPolicyApplyConfiguration

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

func (*PodSecurityPolicyApplyConfiguration) WithAPIVersion

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

func (*PodSecurityPolicyApplyConfiguration) WithAnnotations

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

func (*PodSecurityPolicyApplyConfiguration) WithClusterName

WithClusterName sets the ClusterName 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 ClusterName field is set to the value of the last call.

func (*PodSecurityPolicyApplyConfiguration) WithCreationTimestamp

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

func (*PodSecurityPolicyApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*PodSecurityPolicyApplyConfiguration) WithDeletionTimestamp

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

func (*PodSecurityPolicyApplyConfiguration) WithFinalizers

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

func (*PodSecurityPolicyApplyConfiguration) WithGenerateName

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

func (*PodSecurityPolicyApplyConfiguration) WithGeneration

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

func (*PodSecurityPolicyApplyConfiguration) WithKind

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

func (*PodSecurityPolicyApplyConfiguration) WithLabels

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

func (*PodSecurityPolicyApplyConfiguration) WithName

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

func (*PodSecurityPolicyApplyConfiguration) WithNamespace

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

func (*PodSecurityPolicyApplyConfiguration) WithOwnerReferences

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

func (*PodSecurityPolicyApplyConfiguration) WithResourceVersion

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

WithSelfLink sets the SelfLink 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 SelfLink field is set to the value of the last call.

func (*PodSecurityPolicyApplyConfiguration) WithSpec

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

func (*PodSecurityPolicyApplyConfiguration) WithUID

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

type PodSecurityPolicySpecApplyConfiguration

type PodSecurityPolicySpecApplyConfiguration struct {
	Privileged                      *bool                                                `json:"privileged,omitempty"`
	DefaultAddCapabilities          []v1.Capability                                      `json:"defaultAddCapabilities,omitempty"`
	RequiredDropCapabilities        []v1.Capability                                      `json:"requiredDropCapabilities,omitempty"`
	AllowedCapabilities             []v1.Capability                                      `json:"allowedCapabilities,omitempty"`
	Volumes                         []v1beta1.FSType                                     `json:"volumes,omitempty"`
	HostNetwork                     *bool                                                `json:"hostNetwork,omitempty"`
	HostPorts                       []HostPortRangeApplyConfiguration                    `json:"hostPorts,omitempty"`
	HostPID                         *bool                                                `json:"hostPID,omitempty"`
	HostIPC                         *bool                                                `json:"hostIPC,omitempty"`
	SELinux                         *SELinuxStrategyOptionsApplyConfiguration            `json:"seLinux,omitempty"`
	RunAsUser                       *RunAsUserStrategyOptionsApplyConfiguration          `json:"runAsUser,omitempty"`
	RunAsGroup                      *RunAsGroupStrategyOptionsApplyConfiguration         `json:"runAsGroup,omitempty"`
	SupplementalGroups              *SupplementalGroupsStrategyOptionsApplyConfiguration `json:"supplementalGroups,omitempty"`
	FSGroup                         *FSGroupStrategyOptionsApplyConfiguration            `json:"fsGroup,omitempty"`
	ReadOnlyRootFilesystem          *bool                                                `json:"readOnlyRootFilesystem,omitempty"`
	DefaultAllowPrivilegeEscalation *bool                                                `json:"defaultAllowPrivilegeEscalation,omitempty"`
	AllowPrivilegeEscalation        *bool                                                `json:"allowPrivilegeEscalation,omitempty"`
	AllowedHostPaths                []AllowedHostPathApplyConfiguration                  `json:"allowedHostPaths,omitempty"`
	AllowedFlexVolumes              []AllowedFlexVolumeApplyConfiguration                `json:"allowedFlexVolumes,omitempty"`
	AllowedCSIDrivers               []AllowedCSIDriverApplyConfiguration                 `json:"allowedCSIDrivers,omitempty"`
	AllowedUnsafeSysctls            []string                                             `json:"allowedUnsafeSysctls,omitempty"`
	ForbiddenSysctls                []string                                             `json:"forbiddenSysctls,omitempty"`
	AllowedProcMountTypes           []v1.ProcMountType                                   `json:"allowedProcMountTypes,omitempty"`
	RuntimeClass                    *RuntimeClassStrategyOptionsApplyConfiguration       `json:"runtimeClass,omitempty"`
}

PodSecurityPolicySpecApplyConfiguration represents an declarative configuration of the PodSecurityPolicySpec type for use with apply.

func PodSecurityPolicySpec

func PodSecurityPolicySpec() *PodSecurityPolicySpecApplyConfiguration

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

func (*PodSecurityPolicySpecApplyConfiguration) WithAllowPrivilegeEscalation

WithAllowPrivilegeEscalation sets the AllowPrivilegeEscalation 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 AllowPrivilegeEscalation field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithAllowedCSIDrivers

WithAllowedCSIDrivers adds the given value to the AllowedCSIDrivers 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 AllowedCSIDrivers field.

func (*PodSecurityPolicySpecApplyConfiguration) WithAllowedCapabilities

WithAllowedCapabilities adds the given value to the AllowedCapabilities 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 AllowedCapabilities field.

func (*PodSecurityPolicySpecApplyConfiguration) WithAllowedFlexVolumes

WithAllowedFlexVolumes adds the given value to the AllowedFlexVolumes 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 AllowedFlexVolumes field.

func (*PodSecurityPolicySpecApplyConfiguration) WithAllowedHostPaths

WithAllowedHostPaths adds the given value to the AllowedHostPaths 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 AllowedHostPaths field.

func (*PodSecurityPolicySpecApplyConfiguration) WithAllowedProcMountTypes

WithAllowedProcMountTypes adds the given value to the AllowedProcMountTypes 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 AllowedProcMountTypes field.

func (*PodSecurityPolicySpecApplyConfiguration) WithAllowedUnsafeSysctls

WithAllowedUnsafeSysctls adds the given value to the AllowedUnsafeSysctls 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 AllowedUnsafeSysctls field.

func (*PodSecurityPolicySpecApplyConfiguration) WithDefaultAddCapabilities

WithDefaultAddCapabilities adds the given value to the DefaultAddCapabilities 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 DefaultAddCapabilities field.

func (*PodSecurityPolicySpecApplyConfiguration) WithDefaultAllowPrivilegeEscalation

func (b *PodSecurityPolicySpecApplyConfiguration) WithDefaultAllowPrivilegeEscalation(value bool) *PodSecurityPolicySpecApplyConfiguration

WithDefaultAllowPrivilegeEscalation sets the DefaultAllowPrivilegeEscalation 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 DefaultAllowPrivilegeEscalation field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithFSGroup

WithFSGroup sets the FSGroup 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 FSGroup field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithForbiddenSysctls

WithForbiddenSysctls adds the given value to the ForbiddenSysctls 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 ForbiddenSysctls field.

func (*PodSecurityPolicySpecApplyConfiguration) WithHostIPC

WithHostIPC sets the HostIPC 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 HostIPC field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithHostNetwork

WithHostNetwork sets the HostNetwork 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 HostNetwork field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithHostPID

WithHostPID sets the HostPID 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 HostPID field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithHostPorts

WithHostPorts adds the given value to the HostPorts 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 HostPorts field.

func (*PodSecurityPolicySpecApplyConfiguration) WithPrivileged

WithPrivileged sets the Privileged 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 Privileged field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithReadOnlyRootFilesystem

WithReadOnlyRootFilesystem sets the ReadOnlyRootFilesystem 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 ReadOnlyRootFilesystem field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithRequiredDropCapabilities

WithRequiredDropCapabilities adds the given value to the RequiredDropCapabilities 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 RequiredDropCapabilities field.

func (*PodSecurityPolicySpecApplyConfiguration) WithRunAsGroup

WithRunAsGroup sets the RunAsGroup 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 RunAsGroup field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithRunAsUser

WithRunAsUser sets the RunAsUser 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 RunAsUser field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithRuntimeClass

WithRuntimeClass sets the RuntimeClass 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 RuntimeClass field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithSELinux

WithSELinux sets the SELinux 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 SELinux field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithSupplementalGroups

WithSupplementalGroups sets the SupplementalGroups 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 SupplementalGroups field is set to the value of the last call.

func (*PodSecurityPolicySpecApplyConfiguration) WithVolumes

WithVolumes adds the given value to the Volumes 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 Volumes field.

type RunAsGroupStrategyOptionsApplyConfiguration

type RunAsGroupStrategyOptionsApplyConfiguration struct {
	Rule   *v1beta1.RunAsGroupStrategy `json:"rule,omitempty"`
	Ranges []IDRangeApplyConfiguration `json:"ranges,omitempty"`
}

RunAsGroupStrategyOptionsApplyConfiguration represents an declarative configuration of the RunAsGroupStrategyOptions type for use with apply.

func RunAsGroupStrategyOptions

func RunAsGroupStrategyOptions() *RunAsGroupStrategyOptionsApplyConfiguration

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

func (*RunAsGroupStrategyOptionsApplyConfiguration) WithRanges

WithRanges adds the given value to the Ranges 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 Ranges field.

func (*RunAsGroupStrategyOptionsApplyConfiguration) WithRule

WithRule sets the Rule 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 Rule field is set to the value of the last call.

type RunAsUserStrategyOptionsApplyConfiguration

type RunAsUserStrategyOptionsApplyConfiguration struct {
	Rule   *v1beta1.RunAsUserStrategy  `json:"rule,omitempty"`
	Ranges []IDRangeApplyConfiguration `json:"ranges,omitempty"`
}

RunAsUserStrategyOptionsApplyConfiguration represents an declarative configuration of the RunAsUserStrategyOptions type for use with apply.

func RunAsUserStrategyOptions

func RunAsUserStrategyOptions() *RunAsUserStrategyOptionsApplyConfiguration

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

func (*RunAsUserStrategyOptionsApplyConfiguration) WithRanges

WithRanges adds the given value to the Ranges 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 Ranges field.

func (*RunAsUserStrategyOptionsApplyConfiguration) WithRule

WithRule sets the Rule 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 Rule field is set to the value of the last call.

type RuntimeClassStrategyOptionsApplyConfiguration

type RuntimeClassStrategyOptionsApplyConfiguration struct {
	AllowedRuntimeClassNames []string `json:"allowedRuntimeClassNames,omitempty"`
	DefaultRuntimeClassName  *string  `json:"defaultRuntimeClassName,omitempty"`
}

RuntimeClassStrategyOptionsApplyConfiguration represents an declarative configuration of the RuntimeClassStrategyOptions type for use with apply.

func RuntimeClassStrategyOptions

func RuntimeClassStrategyOptions() *RuntimeClassStrategyOptionsApplyConfiguration

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

func (*RuntimeClassStrategyOptionsApplyConfiguration) WithAllowedRuntimeClassNames

WithAllowedRuntimeClassNames adds the given value to the AllowedRuntimeClassNames 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 AllowedRuntimeClassNames field.

func (*RuntimeClassStrategyOptionsApplyConfiguration) WithDefaultRuntimeClassName

WithDefaultRuntimeClassName sets the DefaultRuntimeClassName 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 DefaultRuntimeClassName field is set to the value of the last call.

type SELinuxStrategyOptionsApplyConfiguration

type SELinuxStrategyOptionsApplyConfiguration struct {
	Rule           *v1beta1.SELinuxStrategy             `json:"rule,omitempty"`
	SELinuxOptions *v1.SELinuxOptionsApplyConfiguration `json:"seLinuxOptions,omitempty"`
}

SELinuxStrategyOptionsApplyConfiguration represents an declarative configuration of the SELinuxStrategyOptions type for use with apply.

func SELinuxStrategyOptions

func SELinuxStrategyOptions() *SELinuxStrategyOptionsApplyConfiguration

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

func (*SELinuxStrategyOptionsApplyConfiguration) WithRule

WithRule sets the Rule 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 Rule field is set to the value of the last call.

func (*SELinuxStrategyOptionsApplyConfiguration) WithSELinuxOptions

WithSELinuxOptions sets the SELinuxOptions 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 SELinuxOptions field is set to the value of the last call.

type SupplementalGroupsStrategyOptionsApplyConfiguration

type SupplementalGroupsStrategyOptionsApplyConfiguration struct {
	Rule   *v1beta1.SupplementalGroupsStrategyType `json:"rule,omitempty"`
	Ranges []IDRangeApplyConfiguration             `json:"ranges,omitempty"`
}

SupplementalGroupsStrategyOptionsApplyConfiguration represents an declarative configuration of the SupplementalGroupsStrategyOptions type for use with apply.

func SupplementalGroupsStrategyOptions

func SupplementalGroupsStrategyOptions() *SupplementalGroupsStrategyOptionsApplyConfiguration

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

func (*SupplementalGroupsStrategyOptionsApplyConfiguration) WithRanges

WithRanges adds the given value to the Ranges 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 Ranges field.

func (*SupplementalGroupsStrategyOptionsApplyConfiguration) WithRule

WithRule sets the Rule 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 Rule field is set to the value of the last call.

Jump to

Keyboard shortcuts

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