Documentation ¶
Index ¶
- type AllowedCSIDriverApplyConfiguration
- type AllowedFlexVolumeApplyConfiguration
- type AllowedHostPathApplyConfiguration
- type EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithAPIVersion(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithAnnotations(entries map[string]string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithClusterName(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithDeleteOptions(value *v1.DeleteOptionsApplyConfiguration) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithFinalizers(values ...string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithGenerateName(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithGeneration(value int64) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithKind(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithLabels(entries map[string]string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithName(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithNamespace(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithResourceVersion(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithSelfLink(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithUID(value types.UID) *EvictionApplyConfiguration
- type FSGroupStrategyOptionsApplyConfiguration
- type HostPortRangeApplyConfiguration
- type IDRangeApplyConfiguration
- type PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithAPIVersion(value string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithAnnotations(entries map[string]string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithClusterName(value string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithFinalizers(values ...string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithGenerateName(value string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithGeneration(value int64) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithKind(value string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithLabels(entries map[string]string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithName(value string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithNamespace(value string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithResourceVersion(value string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithSelfLink(value string) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithSpec(value *PodDisruptionBudgetSpecApplyConfiguration) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithStatus(value *PodDisruptionBudgetStatusApplyConfiguration) *PodDisruptionBudgetApplyConfiguration
- func (b *PodDisruptionBudgetApplyConfiguration) WithUID(value types.UID) *PodDisruptionBudgetApplyConfiguration
- type PodDisruptionBudgetSpecApplyConfiguration
- func (b *PodDisruptionBudgetSpecApplyConfiguration) WithMaxUnavailable(value intstr.IntOrString) *PodDisruptionBudgetSpecApplyConfiguration
- func (b *PodDisruptionBudgetSpecApplyConfiguration) WithMinAvailable(value intstr.IntOrString) *PodDisruptionBudgetSpecApplyConfiguration
- func (b *PodDisruptionBudgetSpecApplyConfiguration) WithSelector(value *v1.LabelSelectorApplyConfiguration) *PodDisruptionBudgetSpecApplyConfiguration
- type PodDisruptionBudgetStatusApplyConfiguration
- func (b *PodDisruptionBudgetStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *PodDisruptionBudgetStatusApplyConfiguration
- func (b *PodDisruptionBudgetStatusApplyConfiguration) WithCurrentHealthy(value int32) *PodDisruptionBudgetStatusApplyConfiguration
- func (b *PodDisruptionBudgetStatusApplyConfiguration) WithDesiredHealthy(value int32) *PodDisruptionBudgetStatusApplyConfiguration
- func (b *PodDisruptionBudgetStatusApplyConfiguration) WithDisruptedPods(entries map[string]v1.Time) *PodDisruptionBudgetStatusApplyConfiguration
- func (b *PodDisruptionBudgetStatusApplyConfiguration) WithDisruptionsAllowed(value int32) *PodDisruptionBudgetStatusApplyConfiguration
- func (b *PodDisruptionBudgetStatusApplyConfiguration) WithExpectedPods(value int32) *PodDisruptionBudgetStatusApplyConfiguration
- func (b *PodDisruptionBudgetStatusApplyConfiguration) WithObservedGeneration(value int64) *PodDisruptionBudgetStatusApplyConfiguration
- type PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithAPIVersion(value string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithClusterName(value string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithFinalizers(values ...string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithGenerateName(value string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithGeneration(value int64) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithKind(value string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithLabels(entries map[string]string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithName(value string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithNamespace(value string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithResourceVersion(value string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithSelfLink(value string) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithSpec(value *PodSecurityPolicySpecApplyConfiguration) *PodSecurityPolicyApplyConfiguration
- func (b *PodSecurityPolicyApplyConfiguration) WithUID(value types.UID) *PodSecurityPolicyApplyConfiguration
- type PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowPrivilegeEscalation(value bool) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedCSIDrivers(values ...*AllowedCSIDriverApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedCapabilities(values ...v1.Capability) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedFlexVolumes(values ...*AllowedFlexVolumeApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedHostPaths(values ...*AllowedHostPathApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedProcMountTypes(values ...v1.ProcMountType) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedUnsafeSysctls(values ...string) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithDefaultAddCapabilities(values ...v1.Capability) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithDefaultAllowPrivilegeEscalation(value bool) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithFSGroup(value *FSGroupStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithForbiddenSysctls(values ...string) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithHostIPC(value bool) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithHostNetwork(value bool) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithHostPID(value bool) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithHostPorts(values ...*HostPortRangeApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithPrivileged(value bool) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithReadOnlyRootFilesystem(value bool) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithRequiredDropCapabilities(values ...v1.Capability) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithRunAsGroup(value *RunAsGroupStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithRunAsUser(value *RunAsUserStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithRuntimeClass(value *RuntimeClassStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithSELinux(value *SELinuxStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithSupplementalGroups(value *SupplementalGroupsStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
- func (b *PodSecurityPolicySpecApplyConfiguration) WithVolumes(values ...v1beta1.FSType) *PodSecurityPolicySpecApplyConfiguration
- type RunAsGroupStrategyOptionsApplyConfiguration
- type RunAsUserStrategyOptionsApplyConfiguration
- type RuntimeClassStrategyOptionsApplyConfiguration
- type SELinuxStrategyOptionsApplyConfiguration
- type SupplementalGroupsStrategyOptionsApplyConfiguration
- func (b *SupplementalGroupsStrategyOptionsApplyConfiguration) WithRanges(values ...*IDRangeApplyConfiguration) *SupplementalGroupsStrategyOptionsApplyConfiguration
- func (b *SupplementalGroupsStrategyOptionsApplyConfiguration) WithRule(value v1beta1.SupplementalGroupsStrategyType) *SupplementalGroupsStrategyOptionsApplyConfiguration
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 ¶
func (b *AllowedCSIDriverApplyConfiguration) WithName(value string) *AllowedCSIDriverApplyConfiguration
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 ¶
func (b *AllowedFlexVolumeApplyConfiguration) WithDriver(value string) *AllowedFlexVolumeApplyConfiguration
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 ¶
func (b *AllowedHostPathApplyConfiguration) WithPathPrefix(value string) *AllowedHostPathApplyConfiguration
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 ¶
func (b *AllowedHostPathApplyConfiguration) WithReadOnly(value bool) *AllowedHostPathApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithAPIVersion(value string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithClusterName(value string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithDeleteOptions(value *v1.DeleteOptionsApplyConfiguration) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithGeneration(value int64) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithKind(value string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithLabels(entries map[string]string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithName(value string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithNamespace(value string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *EvictionApplyConfiguration
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.
func (*EvictionApplyConfiguration) WithSelfLink ¶
func (b *EvictionApplyConfiguration) WithSelfLink(value string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithUID(value types.UID) *EvictionApplyConfiguration
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 ¶
func (b *FSGroupStrategyOptionsApplyConfiguration) WithRanges(values ...*IDRangeApplyConfiguration) *FSGroupStrategyOptionsApplyConfiguration
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 ¶
func (b *FSGroupStrategyOptionsApplyConfiguration) WithRule(value v1beta1.FSGroupStrategyType) *FSGroupStrategyOptionsApplyConfiguration
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 ¶
func (b *HostPortRangeApplyConfiguration) WithMax(value int32) *HostPortRangeApplyConfiguration
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 ¶
func (b *HostPortRangeApplyConfiguration) WithMin(value int32) *HostPortRangeApplyConfiguration
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 ¶
func (b *IDRangeApplyConfiguration) WithMax(value int64) *IDRangeApplyConfiguration
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 ¶
func (b *IDRangeApplyConfiguration) WithMin(value int64) *IDRangeApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithAPIVersion(value string) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithAnnotations(entries map[string]string) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithClusterName(value string) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithFinalizers(values ...string) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithGenerateName(value string) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithGeneration(value int64) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithKind(value string) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithLabels(entries map[string]string) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithName(value string) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithNamespace(value string) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithResourceVersion(value string) *PodDisruptionBudgetApplyConfiguration
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 (*PodDisruptionBudgetApplyConfiguration) WithSelfLink ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithSelfLink(value string) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithSpec(value *PodDisruptionBudgetSpecApplyConfiguration) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithStatus(value *PodDisruptionBudgetStatusApplyConfiguration) *PodDisruptionBudgetApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetApplyConfiguration) WithUID(value types.UID) *PodDisruptionBudgetApplyConfiguration
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"` }
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 ¶
func (b *PodDisruptionBudgetSpecApplyConfiguration) WithMaxUnavailable(value intstr.IntOrString) *PodDisruptionBudgetSpecApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetSpecApplyConfiguration) WithMinAvailable(value intstr.IntOrString) *PodDisruptionBudgetSpecApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetSpecApplyConfiguration) WithSelector(value *v1.LabelSelectorApplyConfiguration) *PodDisruptionBudgetSpecApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *PodDisruptionBudgetStatusApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetStatusApplyConfiguration) WithCurrentHealthy(value int32) *PodDisruptionBudgetStatusApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetStatusApplyConfiguration) WithDesiredHealthy(value int32) *PodDisruptionBudgetStatusApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetStatusApplyConfiguration) WithDisruptedPods(entries map[string]v1.Time) *PodDisruptionBudgetStatusApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetStatusApplyConfiguration) WithDisruptionsAllowed(value int32) *PodDisruptionBudgetStatusApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetStatusApplyConfiguration) WithExpectedPods(value int32) *PodDisruptionBudgetStatusApplyConfiguration
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 ¶
func (b *PodDisruptionBudgetStatusApplyConfiguration) WithObservedGeneration(value int64) *PodDisruptionBudgetStatusApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithAPIVersion(value string) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithClusterName(value string) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithFinalizers(values ...string) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithGenerateName(value string) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithGeneration(value int64) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithKind(value string) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithLabels(entries map[string]string) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithName(value string) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithNamespace(value string) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithResourceVersion(value string) *PodSecurityPolicyApplyConfiguration
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 (*PodSecurityPolicyApplyConfiguration) WithSelfLink ¶
func (b *PodSecurityPolicyApplyConfiguration) WithSelfLink(value string) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithSpec(value *PodSecurityPolicySpecApplyConfiguration) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicyApplyConfiguration) WithUID(value types.UID) *PodSecurityPolicyApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowPrivilegeEscalation(value bool) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedCSIDrivers(values ...*AllowedCSIDriverApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedCapabilities(values ...v1.Capability) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedFlexVolumes(values ...*AllowedFlexVolumeApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedHostPaths(values ...*AllowedHostPathApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedProcMountTypes(values ...v1.ProcMountType) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithAllowedUnsafeSysctls(values ...string) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithDefaultAddCapabilities(values ...v1.Capability) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithFSGroup(value *FSGroupStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithForbiddenSysctls(values ...string) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithHostIPC(value bool) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithHostNetwork(value bool) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithHostPID(value bool) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithHostPorts(values ...*HostPortRangeApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithPrivileged(value bool) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithReadOnlyRootFilesystem(value bool) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithRequiredDropCapabilities(values ...v1.Capability) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithRunAsGroup(value *RunAsGroupStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithRunAsUser(value *RunAsUserStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithRuntimeClass(value *RuntimeClassStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithSELinux(value *SELinuxStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithSupplementalGroups(value *SupplementalGroupsStrategyOptionsApplyConfiguration) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *PodSecurityPolicySpecApplyConfiguration) WithVolumes(values ...v1beta1.FSType) *PodSecurityPolicySpecApplyConfiguration
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 ¶
func (b *RunAsGroupStrategyOptionsApplyConfiguration) WithRanges(values ...*IDRangeApplyConfiguration) *RunAsGroupStrategyOptionsApplyConfiguration
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 ¶
func (b *RunAsGroupStrategyOptionsApplyConfiguration) WithRule(value v1beta1.RunAsGroupStrategy) *RunAsGroupStrategyOptionsApplyConfiguration
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 ¶
func (b *RunAsUserStrategyOptionsApplyConfiguration) WithRanges(values ...*IDRangeApplyConfiguration) *RunAsUserStrategyOptionsApplyConfiguration
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 ¶
func (b *RunAsUserStrategyOptionsApplyConfiguration) WithRule(value v1beta1.RunAsUserStrategy) *RunAsUserStrategyOptionsApplyConfiguration
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 ¶
func (b *RuntimeClassStrategyOptionsApplyConfiguration) WithAllowedRuntimeClassNames(values ...string) *RuntimeClassStrategyOptionsApplyConfiguration
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 ¶
func (b *RuntimeClassStrategyOptionsApplyConfiguration) WithDefaultRuntimeClassName(value string) *RuntimeClassStrategyOptionsApplyConfiguration
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 ¶
func (b *SELinuxStrategyOptionsApplyConfiguration) WithRule(value v1beta1.SELinuxStrategy) *SELinuxStrategyOptionsApplyConfiguration
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 ¶
func (b *SELinuxStrategyOptionsApplyConfiguration) WithSELinuxOptions(value *v1.SELinuxOptionsApplyConfiguration) *SELinuxStrategyOptionsApplyConfiguration
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 ¶
func (b *SupplementalGroupsStrategyOptionsApplyConfiguration) WithRanges(values ...*IDRangeApplyConfiguration) *SupplementalGroupsStrategyOptionsApplyConfiguration
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 ¶
func (b *SupplementalGroupsStrategyOptionsApplyConfiguration) WithRule(value v1beta1.SupplementalGroupsStrategyType) *SupplementalGroupsStrategyOptionsApplyConfiguration
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.
Source Files ¶
- allowedcsidriver.go
- allowedflexvolume.go
- allowedhostpath.go
- eviction.go
- fsgroupstrategyoptions.go
- hostportrange.go
- idrange.go
- poddisruptionbudget.go
- poddisruptionbudgetspec.go
- poddisruptionbudgetstatus.go
- podsecuritypolicy.go
- podsecuritypolicyspec.go
- runasgroupstrategyoptions.go
- runasuserstrategyoptions.go
- runtimeclassstrategyoptions.go
- selinuxstrategyoptions.go
- supplementalgroupsstrategyoptions.go