package v1alpha3
import "k8s.io/client-go/applyconfigurations/resource/v1alpha3"
Index ¶
- type CELDeviceSelectorApplyConfiguration
- func CELDeviceSelector() *CELDeviceSelectorApplyConfiguration
- func (b *CELDeviceSelectorApplyConfiguration) WithExpression(value string) *CELDeviceSelectorApplyConfiguration
- type DeviceSelectorApplyConfiguration
- func DeviceSelector() *DeviceSelectorApplyConfiguration
- func (b *DeviceSelectorApplyConfiguration) WithCEL(value *CELDeviceSelectorApplyConfiguration) *DeviceSelectorApplyConfiguration
- type DeviceTaintApplyConfiguration
- func DeviceTaint() *DeviceTaintApplyConfiguration
- func (b *DeviceTaintApplyConfiguration) WithEffect(value resourcev1alpha3.DeviceTaintEffect) *DeviceTaintApplyConfiguration
- func (b *DeviceTaintApplyConfiguration) WithKey(value string) *DeviceTaintApplyConfiguration
- func (b *DeviceTaintApplyConfiguration) WithTimeAdded(value v1.Time) *DeviceTaintApplyConfiguration
- func (b *DeviceTaintApplyConfiguration) WithValue(value string) *DeviceTaintApplyConfiguration
- type DeviceTaintRuleApplyConfiguration
- func DeviceTaintRule(name string) *DeviceTaintRuleApplyConfiguration
- func ExtractDeviceTaintRule(deviceTaintRule *resourcev1alpha3.DeviceTaintRule, fieldManager string) (*DeviceTaintRuleApplyConfiguration, error)
- func ExtractDeviceTaintRuleStatus(deviceTaintRule *resourcev1alpha3.DeviceTaintRule, fieldManager string) (*DeviceTaintRuleApplyConfiguration, error)
- func (b *DeviceTaintRuleApplyConfiguration) GetName() *string
- func (b *DeviceTaintRuleApplyConfiguration) WithAPIVersion(value string) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithAnnotations(entries map[string]string) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithFinalizers(values ...string) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithGenerateName(value string) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithGeneration(value int64) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithKind(value string) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithLabels(entries map[string]string) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithName(value string) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithNamespace(value string) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithResourceVersion(value string) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithSpec(value *DeviceTaintRuleSpecApplyConfiguration) *DeviceTaintRuleApplyConfiguration
- func (b *DeviceTaintRuleApplyConfiguration) WithUID(value types.UID) *DeviceTaintRuleApplyConfiguration
- type DeviceTaintRuleSpecApplyConfiguration
- func DeviceTaintRuleSpec() *DeviceTaintRuleSpecApplyConfiguration
- func (b *DeviceTaintRuleSpecApplyConfiguration) WithDeviceSelector(value *DeviceTaintSelectorApplyConfiguration) *DeviceTaintRuleSpecApplyConfiguration
- func (b *DeviceTaintRuleSpecApplyConfiguration) WithTaint(value *DeviceTaintApplyConfiguration) *DeviceTaintRuleSpecApplyConfiguration
- type DeviceTaintSelectorApplyConfiguration
- func DeviceTaintSelector() *DeviceTaintSelectorApplyConfiguration
- func (b *DeviceTaintSelectorApplyConfiguration) WithDevice(value string) *DeviceTaintSelectorApplyConfiguration
- func (b *DeviceTaintSelectorApplyConfiguration) WithDeviceClassName(value string) *DeviceTaintSelectorApplyConfiguration
- func (b *DeviceTaintSelectorApplyConfiguration) WithDriver(value string) *DeviceTaintSelectorApplyConfiguration
- func (b *DeviceTaintSelectorApplyConfiguration) WithPool(value string) *DeviceTaintSelectorApplyConfiguration
- func (b *DeviceTaintSelectorApplyConfiguration) WithSelectors(values ...*DeviceSelectorApplyConfiguration) *DeviceTaintSelectorApplyConfiguration
Types ¶
type CELDeviceSelectorApplyConfiguration ¶
type CELDeviceSelectorApplyConfiguration struct { Expression *string `json:"expression,omitempty"` }
CELDeviceSelectorApplyConfiguration represents a declarative configuration of the CELDeviceSelector type for use with apply.
func CELDeviceSelector ¶
func CELDeviceSelector() *CELDeviceSelectorApplyConfiguration
CELDeviceSelectorApplyConfiguration constructs a declarative configuration of the CELDeviceSelector type for use with apply.
func (*CELDeviceSelectorApplyConfiguration) WithExpression ¶
func (b *CELDeviceSelectorApplyConfiguration) WithExpression(value string) *CELDeviceSelectorApplyConfiguration
WithExpression sets the Expression field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Expression field is set to the value of the last call.
type DeviceSelectorApplyConfiguration ¶
type DeviceSelectorApplyConfiguration struct { CEL *CELDeviceSelectorApplyConfiguration `json:"cel,omitempty"` }
DeviceSelectorApplyConfiguration represents a declarative configuration of the DeviceSelector type for use with apply.
func DeviceSelector ¶
func DeviceSelector() *DeviceSelectorApplyConfiguration
DeviceSelectorApplyConfiguration constructs a declarative configuration of the DeviceSelector type for use with apply.
func (*DeviceSelectorApplyConfiguration) WithCEL ¶
func (b *DeviceSelectorApplyConfiguration) WithCEL(value *CELDeviceSelectorApplyConfiguration) *DeviceSelectorApplyConfiguration
WithCEL sets the CEL field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CEL field is set to the value of the last call.
type DeviceTaintApplyConfiguration ¶
type DeviceTaintApplyConfiguration struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` Effect *resourcev1alpha3.DeviceTaintEffect `json:"effect,omitempty"` TimeAdded *v1.Time `json:"timeAdded,omitempty"` }
DeviceTaintApplyConfiguration represents a declarative configuration of the DeviceTaint type for use with apply.
func DeviceTaint ¶
func DeviceTaint() *DeviceTaintApplyConfiguration
DeviceTaintApplyConfiguration constructs a declarative configuration of the DeviceTaint type for use with apply.
func (*DeviceTaintApplyConfiguration) WithEffect ¶
func (b *DeviceTaintApplyConfiguration) WithEffect(value resourcev1alpha3.DeviceTaintEffect) *DeviceTaintApplyConfiguration
WithEffect sets the Effect field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Effect field is set to the value of the last call.
func (*DeviceTaintApplyConfiguration) WithKey ¶
func (b *DeviceTaintApplyConfiguration) WithKey(value string) *DeviceTaintApplyConfiguration
WithKey sets the Key field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Key field is set to the value of the last call.
func (*DeviceTaintApplyConfiguration) WithTimeAdded ¶
func (b *DeviceTaintApplyConfiguration) WithTimeAdded(value v1.Time) *DeviceTaintApplyConfiguration
WithTimeAdded sets the TimeAdded field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TimeAdded field is set to the value of the last call.
func (*DeviceTaintApplyConfiguration) WithValue ¶
func (b *DeviceTaintApplyConfiguration) WithValue(value string) *DeviceTaintApplyConfiguration
WithValue sets the Value field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Value field is set to the value of the last call.
type DeviceTaintRuleApplyConfiguration ¶
type DeviceTaintRuleApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *DeviceTaintRuleSpecApplyConfiguration `json:"spec,omitempty"` }
DeviceTaintRuleApplyConfiguration represents a declarative configuration of the DeviceTaintRule type for use with apply.
func DeviceTaintRule ¶
func DeviceTaintRule(name string) *DeviceTaintRuleApplyConfiguration
DeviceTaintRule constructs a declarative configuration of the DeviceTaintRule type for use with apply.
func ExtractDeviceTaintRule ¶
func ExtractDeviceTaintRule(deviceTaintRule *resourcev1alpha3.DeviceTaintRule, fieldManager string) (*DeviceTaintRuleApplyConfiguration, error)
ExtractDeviceTaintRule extracts the applied configuration owned by fieldManager from deviceTaintRule. If no managedFields are found in deviceTaintRule for fieldManager, a DeviceTaintRuleApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It 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. deviceTaintRule must be a unmodified DeviceTaintRule API object that was retrieved from the Kubernetes API. ExtractDeviceTaintRule 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 ExtractDeviceTaintRuleStatus ¶
func ExtractDeviceTaintRuleStatus(deviceTaintRule *resourcev1alpha3.DeviceTaintRule, fieldManager string) (*DeviceTaintRuleApplyConfiguration, error)
ExtractDeviceTaintRuleStatus is the same as ExtractDeviceTaintRule except that it extracts the status subresource applied configuration. Experimental!
func (*DeviceTaintRuleApplyConfiguration) GetName ¶
func (b *DeviceTaintRuleApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*DeviceTaintRuleApplyConfiguration) WithAPIVersion ¶
func (b *DeviceTaintRuleApplyConfiguration) WithAPIVersion(value string) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithAnnotations ¶
func (b *DeviceTaintRuleApplyConfiguration) WithAnnotations(entries map[string]string) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithCreationTimestamp ¶
func (b *DeviceTaintRuleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *DeviceTaintRuleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithDeletionTimestamp ¶
func (b *DeviceTaintRuleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithFinalizers ¶
func (b *DeviceTaintRuleApplyConfiguration) WithFinalizers(values ...string) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithGenerateName ¶
func (b *DeviceTaintRuleApplyConfiguration) WithGenerateName(value string) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithGeneration ¶
func (b *DeviceTaintRuleApplyConfiguration) WithGeneration(value int64) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithKind ¶
func (b *DeviceTaintRuleApplyConfiguration) WithKind(value string) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithLabels ¶
func (b *DeviceTaintRuleApplyConfiguration) WithLabels(entries map[string]string) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithName ¶
func (b *DeviceTaintRuleApplyConfiguration) WithName(value string) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithNamespace ¶
func (b *DeviceTaintRuleApplyConfiguration) WithNamespace(value string) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithOwnerReferences ¶
func (b *DeviceTaintRuleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithResourceVersion ¶
func (b *DeviceTaintRuleApplyConfiguration) WithResourceVersion(value string) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithSpec ¶
func (b *DeviceTaintRuleApplyConfiguration) WithSpec(value *DeviceTaintRuleSpecApplyConfiguration) *DeviceTaintRuleApplyConfiguration
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 (*DeviceTaintRuleApplyConfiguration) WithUID ¶
func (b *DeviceTaintRuleApplyConfiguration) WithUID(value types.UID) *DeviceTaintRuleApplyConfiguration
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 DeviceTaintRuleSpecApplyConfiguration ¶
type DeviceTaintRuleSpecApplyConfiguration struct { DeviceSelector *DeviceTaintSelectorApplyConfiguration `json:"deviceSelector,omitempty"` Taint *DeviceTaintApplyConfiguration `json:"taint,omitempty"` }
DeviceTaintRuleSpecApplyConfiguration represents a declarative configuration of the DeviceTaintRuleSpec type for use with apply.
func DeviceTaintRuleSpec ¶
func DeviceTaintRuleSpec() *DeviceTaintRuleSpecApplyConfiguration
DeviceTaintRuleSpecApplyConfiguration constructs a declarative configuration of the DeviceTaintRuleSpec type for use with apply.
func (*DeviceTaintRuleSpecApplyConfiguration) WithDeviceSelector ¶
func (b *DeviceTaintRuleSpecApplyConfiguration) WithDeviceSelector(value *DeviceTaintSelectorApplyConfiguration) *DeviceTaintRuleSpecApplyConfiguration
WithDeviceSelector sets the DeviceSelector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeviceSelector field is set to the value of the last call.
func (*DeviceTaintRuleSpecApplyConfiguration) WithTaint ¶
func (b *DeviceTaintRuleSpecApplyConfiguration) WithTaint(value *DeviceTaintApplyConfiguration) *DeviceTaintRuleSpecApplyConfiguration
WithTaint sets the Taint field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Taint field is set to the value of the last call.
type DeviceTaintSelectorApplyConfiguration ¶
type DeviceTaintSelectorApplyConfiguration struct { DeviceClassName *string `json:"deviceClassName,omitempty"` Driver *string `json:"driver,omitempty"` Pool *string `json:"pool,omitempty"` Device *string `json:"device,omitempty"` Selectors []DeviceSelectorApplyConfiguration `json:"selectors,omitempty"` }
DeviceTaintSelectorApplyConfiguration represents a declarative configuration of the DeviceTaintSelector type for use with apply.
func DeviceTaintSelector ¶
func DeviceTaintSelector() *DeviceTaintSelectorApplyConfiguration
DeviceTaintSelectorApplyConfiguration constructs a declarative configuration of the DeviceTaintSelector type for use with apply.
func (*DeviceTaintSelectorApplyConfiguration) WithDevice ¶
func (b *DeviceTaintSelectorApplyConfiguration) WithDevice(value string) *DeviceTaintSelectorApplyConfiguration
WithDevice sets the Device field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Device field is set to the value of the last call.
func (*DeviceTaintSelectorApplyConfiguration) WithDeviceClassName ¶
func (b *DeviceTaintSelectorApplyConfiguration) WithDeviceClassName(value string) *DeviceTaintSelectorApplyConfiguration
WithDeviceClassName sets the DeviceClassName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeviceClassName field is set to the value of the last call.
func (*DeviceTaintSelectorApplyConfiguration) WithDriver ¶
func (b *DeviceTaintSelectorApplyConfiguration) WithDriver(value string) *DeviceTaintSelectorApplyConfiguration
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.
func (*DeviceTaintSelectorApplyConfiguration) WithPool ¶
func (b *DeviceTaintSelectorApplyConfiguration) WithPool(value string) *DeviceTaintSelectorApplyConfiguration
WithPool sets the Pool field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Pool field is set to the value of the last call.
func (*DeviceTaintSelectorApplyConfiguration) WithSelectors ¶
func (b *DeviceTaintSelectorApplyConfiguration) WithSelectors(values ...*DeviceSelectorApplyConfiguration) *DeviceTaintSelectorApplyConfiguration
WithSelectors adds the given value to the Selectors 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 Selectors field.
Source Files ¶
celdeviceselector.go deviceselector.go devicetaint.go devicetaintrule.go devicetaintrulespec.go devicetaintselector.go
- Version
- v0.34.0-alpha.1
- Published
- Jun 16, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 21 minutes ago –
Tools for package owners.