v1alpha3

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocationResultApplyConfiguration

type AllocationResultApplyConfiguration struct {
	Devices      *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"`
	NodeSelector *v1.NodeSelectorApplyConfiguration        `json:"nodeSelector,omitempty"`
	Controller   *string                                   `json:"controller,omitempty"`
}

AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use with apply.

func AllocationResult

func AllocationResult() *AllocationResultApplyConfiguration

AllocationResultApplyConfiguration constructs a declarative configuration of the AllocationResult type for use with apply.

func (*AllocationResultApplyConfiguration) WithController

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

func (*AllocationResultApplyConfiguration) WithDevices

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

func (*AllocationResultApplyConfiguration) WithNodeSelector

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

type BasicDeviceApplyConfiguration

type BasicDeviceApplyConfiguration struct {
	Attributes map[v1alpha3.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"`
	Capacity   map[v1alpha3.QualifiedName]resource.Quantity                 `json:"capacity,omitempty"`
}

BasicDeviceApplyConfiguration represents a declarative configuration of the BasicDevice type for use with apply.

func BasicDevice

func BasicDevice() *BasicDeviceApplyConfiguration

BasicDeviceApplyConfiguration constructs a declarative configuration of the BasicDevice type for use with apply.

func (*BasicDeviceApplyConfiguration) WithAttributes

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

func (*BasicDeviceApplyConfiguration) WithCapacity

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

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

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 DeviceAllocationConfigurationApplyConfiguration

type DeviceAllocationConfigurationApplyConfiguration struct {
	Source                                *v1alpha3.AllocationConfigSource `json:"source,omitempty"`
	Requests                              []string                         `json:"requests,omitempty"`
	DeviceConfigurationApplyConfiguration `json:",inline"`
}

DeviceAllocationConfigurationApplyConfiguration represents a declarative configuration of the DeviceAllocationConfiguration type for use with apply.

func DeviceAllocationConfiguration

func DeviceAllocationConfiguration() *DeviceAllocationConfigurationApplyConfiguration

DeviceAllocationConfigurationApplyConfiguration constructs a declarative configuration of the DeviceAllocationConfiguration type for use with apply.

func (*DeviceAllocationConfigurationApplyConfiguration) WithOpaque

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

func (*DeviceAllocationConfigurationApplyConfiguration) WithRequests

WithRequests adds the given value to the Requests 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 Requests field.

func (*DeviceAllocationConfigurationApplyConfiguration) WithSource

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

type DeviceAllocationResultApplyConfiguration

type DeviceAllocationResultApplyConfiguration struct {
	Results []DeviceRequestAllocationResultApplyConfiguration `json:"results,omitempty"`
	Config  []DeviceAllocationConfigurationApplyConfiguration `json:"config,omitempty"`
}

DeviceAllocationResultApplyConfiguration represents a declarative configuration of the DeviceAllocationResult type for use with apply.

func DeviceAllocationResult

func DeviceAllocationResult() *DeviceAllocationResultApplyConfiguration

DeviceAllocationResultApplyConfiguration constructs a declarative configuration of the DeviceAllocationResult type for use with apply.

func (*DeviceAllocationResultApplyConfiguration) WithConfig

WithConfig adds the given value to the Config 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 Config field.

func (*DeviceAllocationResultApplyConfiguration) WithResults

WithResults adds the given value to the Results 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 Results field.

type DeviceApplyConfiguration

type DeviceApplyConfiguration struct {
	Name  *string                        `json:"name,omitempty"`
	Basic *BasicDeviceApplyConfiguration `json:"basic,omitempty"`
}

DeviceApplyConfiguration represents a declarative configuration of the Device type for use with apply.

func Device

func Device() *DeviceApplyConfiguration

DeviceApplyConfiguration constructs a declarative configuration of the Device type for use with apply.

func (*DeviceApplyConfiguration) WithBasic

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

func (*DeviceApplyConfiguration) WithName

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

type DeviceAttributeApplyConfiguration

type DeviceAttributeApplyConfiguration struct {
	IntValue     *int64  `json:"int,omitempty"`
	BoolValue    *bool   `json:"bool,omitempty"`
	StringValue  *string `json:"string,omitempty"`
	VersionValue *string `json:"version,omitempty"`
}

DeviceAttributeApplyConfiguration represents a declarative configuration of the DeviceAttribute type for use with apply.

func DeviceAttribute

func DeviceAttribute() *DeviceAttributeApplyConfiguration

DeviceAttributeApplyConfiguration constructs a declarative configuration of the DeviceAttribute type for use with apply.

func (*DeviceAttributeApplyConfiguration) WithBoolValue

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

func (*DeviceAttributeApplyConfiguration) WithIntValue

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

func (*DeviceAttributeApplyConfiguration) WithStringValue

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

func (*DeviceAttributeApplyConfiguration) WithVersionValue

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

type DeviceClaimApplyConfiguration

type DeviceClaimApplyConfiguration struct {
	Requests    []DeviceRequestApplyConfiguration            `json:"requests,omitempty"`
	Constraints []DeviceConstraintApplyConfiguration         `json:"constraints,omitempty"`
	Config      []DeviceClaimConfigurationApplyConfiguration `json:"config,omitempty"`
}

DeviceClaimApplyConfiguration represents a declarative configuration of the DeviceClaim type for use with apply.

func DeviceClaim

func DeviceClaim() *DeviceClaimApplyConfiguration

DeviceClaimApplyConfiguration constructs a declarative configuration of the DeviceClaim type for use with apply.

func (*DeviceClaimApplyConfiguration) WithConfig

WithConfig adds the given value to the Config 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 Config field.

func (*DeviceClaimApplyConfiguration) WithConstraints

WithConstraints adds the given value to the Constraints 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 Constraints field.

func (*DeviceClaimApplyConfiguration) WithRequests

WithRequests adds the given value to the Requests 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 Requests field.

type DeviceClaimConfigurationApplyConfiguration

type DeviceClaimConfigurationApplyConfiguration struct {
	Requests                              []string `json:"requests,omitempty"`
	DeviceConfigurationApplyConfiguration `json:",inline"`
}

DeviceClaimConfigurationApplyConfiguration represents a declarative configuration of the DeviceClaimConfiguration type for use with apply.

func DeviceClaimConfiguration

func DeviceClaimConfiguration() *DeviceClaimConfigurationApplyConfiguration

DeviceClaimConfigurationApplyConfiguration constructs a declarative configuration of the DeviceClaimConfiguration type for use with apply.

func (*DeviceClaimConfigurationApplyConfiguration) WithOpaque

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

func (*DeviceClaimConfigurationApplyConfiguration) WithRequests

WithRequests adds the given value to the Requests 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 Requests field.

type DeviceClassApplyConfiguration

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

DeviceClassApplyConfiguration represents a declarative configuration of the DeviceClass type for use with apply.

func DeviceClass

func DeviceClass(name string) *DeviceClassApplyConfiguration

DeviceClass constructs a declarative configuration of the DeviceClass type for use with apply.

func ExtractDeviceClass

func ExtractDeviceClass(deviceClass *resourcev1alpha3.DeviceClass, fieldManager string) (*DeviceClassApplyConfiguration, error)

ExtractDeviceClass extracts the applied configuration owned by fieldManager from deviceClass. If no managedFields are found in deviceClass for fieldManager, a DeviceClassApplyConfiguration 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. deviceClass must be a unmodified DeviceClass API object that was retrieved from the Kubernetes API. ExtractDeviceClass 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 ExtractDeviceClassStatus

func ExtractDeviceClassStatus(deviceClass *resourcev1alpha3.DeviceClass, fieldManager string) (*DeviceClassApplyConfiguration, error)

ExtractDeviceClassStatus is the same as ExtractDeviceClass except that it extracts the status subresource applied configuration. Experimental!

func (*DeviceClassApplyConfiguration) GetName

func (b *DeviceClassApplyConfiguration) GetName() *string

GetName retrieves the value of the Name field in the declarative configuration.

func (*DeviceClassApplyConfiguration) WithAPIVersion

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

func (*DeviceClassApplyConfiguration) WithAnnotations

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

func (*DeviceClassApplyConfiguration) WithCreationTimestamp

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

func (*DeviceClassApplyConfiguration) WithDeletionGracePeriodSeconds

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

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

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

func (*DeviceClassApplyConfiguration) WithFinalizers

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

func (*DeviceClassApplyConfiguration) WithGenerateName

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

func (*DeviceClassApplyConfiguration) WithGeneration

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

func (*DeviceClassApplyConfiguration) WithKind

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

func (*DeviceClassApplyConfiguration) WithLabels

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

func (*DeviceClassApplyConfiguration) WithName

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

func (*DeviceClassApplyConfiguration) WithNamespace

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

func (*DeviceClassApplyConfiguration) WithOwnerReferences

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

func (*DeviceClassApplyConfiguration) WithResourceVersion

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

func (*DeviceClassApplyConfiguration) WithSpec

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

func (*DeviceClassApplyConfiguration) WithUID

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

type DeviceClassConfigurationApplyConfiguration

type DeviceClassConfigurationApplyConfiguration struct {
	DeviceConfigurationApplyConfiguration `json:",inline"`
}

DeviceClassConfigurationApplyConfiguration represents a declarative configuration of the DeviceClassConfiguration type for use with apply.

func DeviceClassConfiguration

func DeviceClassConfiguration() *DeviceClassConfigurationApplyConfiguration

DeviceClassConfigurationApplyConfiguration constructs a declarative configuration of the DeviceClassConfiguration type for use with apply.

func (*DeviceClassConfigurationApplyConfiguration) WithOpaque

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

type DeviceClassSpecApplyConfiguration

type DeviceClassSpecApplyConfiguration struct {
	Selectors     []DeviceSelectorApplyConfiguration           `json:"selectors,omitempty"`
	Config        []DeviceClassConfigurationApplyConfiguration `json:"config,omitempty"`
	SuitableNodes *v1.NodeSelectorApplyConfiguration           `json:"suitableNodes,omitempty"`
}

DeviceClassSpecApplyConfiguration represents a declarative configuration of the DeviceClassSpec type for use with apply.

func DeviceClassSpec

func DeviceClassSpec() *DeviceClassSpecApplyConfiguration

DeviceClassSpecApplyConfiguration constructs a declarative configuration of the DeviceClassSpec type for use with apply.

func (*DeviceClassSpecApplyConfiguration) WithConfig

WithConfig adds the given value to the Config 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 Config field.

func (*DeviceClassSpecApplyConfiguration) WithSelectors

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.

func (*DeviceClassSpecApplyConfiguration) WithSuitableNodes

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

type DeviceConfigurationApplyConfiguration

type DeviceConfigurationApplyConfiguration struct {
	Opaque *OpaqueDeviceConfigurationApplyConfiguration `json:"opaque,omitempty"`
}

DeviceConfigurationApplyConfiguration represents a declarative configuration of the DeviceConfiguration type for use with apply.

func DeviceConfiguration

func DeviceConfiguration() *DeviceConfigurationApplyConfiguration

DeviceConfigurationApplyConfiguration constructs a declarative configuration of the DeviceConfiguration type for use with apply.

func (*DeviceConfigurationApplyConfiguration) WithOpaque

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

type DeviceConstraintApplyConfiguration

type DeviceConstraintApplyConfiguration struct {
	Requests       []string                     `json:"requests,omitempty"`
	MatchAttribute *v1alpha3.FullyQualifiedName `json:"matchAttribute,omitempty"`
}

DeviceConstraintApplyConfiguration represents a declarative configuration of the DeviceConstraint type for use with apply.

func DeviceConstraint

func DeviceConstraint() *DeviceConstraintApplyConfiguration

DeviceConstraintApplyConfiguration constructs a declarative configuration of the DeviceConstraint type for use with apply.

func (*DeviceConstraintApplyConfiguration) WithMatchAttribute

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

func (*DeviceConstraintApplyConfiguration) WithRequests

WithRequests adds the given value to the Requests 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 Requests field.

type DeviceRequestAllocationResultApplyConfiguration

type DeviceRequestAllocationResultApplyConfiguration struct {
	Request *string `json:"request,omitempty"`
	Driver  *string `json:"driver,omitempty"`
	Pool    *string `json:"pool,omitempty"`
	Device  *string `json:"device,omitempty"`
}

DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use with apply.

func DeviceRequestAllocationResult

func DeviceRequestAllocationResult() *DeviceRequestAllocationResultApplyConfiguration

DeviceRequestAllocationResultApplyConfiguration constructs a declarative configuration of the DeviceRequestAllocationResult type for use with apply.

func (*DeviceRequestAllocationResultApplyConfiguration) WithDevice

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 (*DeviceRequestAllocationResultApplyConfiguration) WithDriver

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

func (*DeviceRequestAllocationResultApplyConfiguration) WithPool

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 (*DeviceRequestAllocationResultApplyConfiguration) WithRequest

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

type DeviceRequestApplyConfiguration

type DeviceRequestApplyConfiguration struct {
	Name            *string                                `json:"name,omitempty"`
	DeviceClassName *string                                `json:"deviceClassName,omitempty"`
	Selectors       []DeviceSelectorApplyConfiguration     `json:"selectors,omitempty"`
	AllocationMode  *resourcev1alpha3.DeviceAllocationMode `json:"allocationMode,omitempty"`
	Count           *int64                                 `json:"count,omitempty"`
	AdminAccess     *bool                                  `json:"adminAccess,omitempty"`
}

DeviceRequestApplyConfiguration represents a declarative configuration of the DeviceRequest type for use with apply.

func DeviceRequest

func DeviceRequest() *DeviceRequestApplyConfiguration

DeviceRequestApplyConfiguration constructs a declarative configuration of the DeviceRequest type for use with apply.

func (*DeviceRequestApplyConfiguration) WithAdminAccess

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

func (*DeviceRequestApplyConfiguration) WithAllocationMode

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

func (*DeviceRequestApplyConfiguration) WithCount

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

func (*DeviceRequestApplyConfiguration) WithDeviceClassName

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 (*DeviceRequestApplyConfiguration) WithName

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

func (*DeviceRequestApplyConfiguration) WithSelectors

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.

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

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 OpaqueDeviceConfigurationApplyConfiguration

type OpaqueDeviceConfigurationApplyConfiguration struct {
	Driver     *string               `json:"driver,omitempty"`
	Parameters *runtime.RawExtension `json:"parameters,omitempty"`
}

OpaqueDeviceConfigurationApplyConfiguration represents a declarative configuration of the OpaqueDeviceConfiguration type for use with apply.

func OpaqueDeviceConfiguration

func OpaqueDeviceConfiguration() *OpaqueDeviceConfigurationApplyConfiguration

OpaqueDeviceConfigurationApplyConfiguration constructs a declarative configuration of the OpaqueDeviceConfiguration type for use with apply.

func (*OpaqueDeviceConfigurationApplyConfiguration) WithDriver

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

func (*OpaqueDeviceConfigurationApplyConfiguration) WithParameters

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

type PodSchedulingContextApplyConfiguration

type PodSchedulingContextApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *PodSchedulingContextSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *PodSchedulingContextStatusApplyConfiguration `json:"status,omitempty"`
}

PodSchedulingContextApplyConfiguration represents a declarative configuration of the PodSchedulingContext type for use with apply.

func ExtractPodSchedulingContext

func ExtractPodSchedulingContext(podSchedulingContext *resourcev1alpha3.PodSchedulingContext, fieldManager string) (*PodSchedulingContextApplyConfiguration, error)

ExtractPodSchedulingContext extracts the applied configuration owned by fieldManager from podSchedulingContext. If no managedFields are found in podSchedulingContext for fieldManager, a PodSchedulingContextApplyConfiguration 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. podSchedulingContext must be a unmodified PodSchedulingContext API object that was retrieved from the Kubernetes API. ExtractPodSchedulingContext 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 ExtractPodSchedulingContextStatus

func ExtractPodSchedulingContextStatus(podSchedulingContext *resourcev1alpha3.PodSchedulingContext, fieldManager string) (*PodSchedulingContextApplyConfiguration, error)

ExtractPodSchedulingContextStatus is the same as ExtractPodSchedulingContext except that it extracts the status subresource applied configuration. Experimental!

func PodSchedulingContext

func PodSchedulingContext(name, namespace string) *PodSchedulingContextApplyConfiguration

PodSchedulingContext constructs a declarative configuration of the PodSchedulingContext type for use with apply.

func (*PodSchedulingContextApplyConfiguration) GetName

GetName retrieves the value of the Name field in the declarative configuration.

func (*PodSchedulingContextApplyConfiguration) WithAPIVersion

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

func (*PodSchedulingContextApplyConfiguration) WithAnnotations

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

func (*PodSchedulingContextApplyConfiguration) WithCreationTimestamp

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

func (*PodSchedulingContextApplyConfiguration) WithDeletionGracePeriodSeconds

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

func (*PodSchedulingContextApplyConfiguration) WithDeletionTimestamp

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

func (*PodSchedulingContextApplyConfiguration) WithFinalizers

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

func (*PodSchedulingContextApplyConfiguration) WithGenerateName

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

func (*PodSchedulingContextApplyConfiguration) WithGeneration

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

func (*PodSchedulingContextApplyConfiguration) WithKind

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

func (*PodSchedulingContextApplyConfiguration) WithLabels

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

func (*PodSchedulingContextApplyConfiguration) WithName

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

func (*PodSchedulingContextApplyConfiguration) WithNamespace

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

func (*PodSchedulingContextApplyConfiguration) WithOwnerReferences

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

func (*PodSchedulingContextApplyConfiguration) WithResourceVersion

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

func (*PodSchedulingContextApplyConfiguration) WithSpec

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

func (*PodSchedulingContextApplyConfiguration) WithStatus

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

func (*PodSchedulingContextApplyConfiguration) WithUID

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

type PodSchedulingContextSpecApplyConfiguration

type PodSchedulingContextSpecApplyConfiguration struct {
	SelectedNode   *string  `json:"selectedNode,omitempty"`
	PotentialNodes []string `json:"potentialNodes,omitempty"`
}

PodSchedulingContextSpecApplyConfiguration represents a declarative configuration of the PodSchedulingContextSpec type for use with apply.

func PodSchedulingContextSpec

func PodSchedulingContextSpec() *PodSchedulingContextSpecApplyConfiguration

PodSchedulingContextSpecApplyConfiguration constructs a declarative configuration of the PodSchedulingContextSpec type for use with apply.

func (*PodSchedulingContextSpecApplyConfiguration) WithPotentialNodes

WithPotentialNodes adds the given value to the PotentialNodes 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 PotentialNodes field.

func (*PodSchedulingContextSpecApplyConfiguration) WithSelectedNode

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

type PodSchedulingContextStatusApplyConfiguration

type PodSchedulingContextStatusApplyConfiguration struct {
	ResourceClaims []ResourceClaimSchedulingStatusApplyConfiguration `json:"resourceClaims,omitempty"`
}

PodSchedulingContextStatusApplyConfiguration represents a declarative configuration of the PodSchedulingContextStatus type for use with apply.

func PodSchedulingContextStatus

func PodSchedulingContextStatus() *PodSchedulingContextStatusApplyConfiguration

PodSchedulingContextStatusApplyConfiguration constructs a declarative configuration of the PodSchedulingContextStatus type for use with apply.

func (*PodSchedulingContextStatusApplyConfiguration) WithResourceClaims

WithResourceClaims adds the given value to the ResourceClaims 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 ResourceClaims field.

type ResourceClaimApplyConfiguration

type ResourceClaimApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *ResourceClaimSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *ResourceClaimStatusApplyConfiguration `json:"status,omitempty"`
}

ResourceClaimApplyConfiguration represents a declarative configuration of the ResourceClaim type for use with apply.

func ExtractResourceClaim

func ExtractResourceClaim(resourceClaim *resourcev1alpha3.ResourceClaim, fieldManager string) (*ResourceClaimApplyConfiguration, error)

ExtractResourceClaim extracts the applied configuration owned by fieldManager from resourceClaim. If no managedFields are found in resourceClaim for fieldManager, a ResourceClaimApplyConfiguration 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. resourceClaim must be a unmodified ResourceClaim API object that was retrieved from the Kubernetes API. ExtractResourceClaim 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 ExtractResourceClaimStatus

func ExtractResourceClaimStatus(resourceClaim *resourcev1alpha3.ResourceClaim, fieldManager string) (*ResourceClaimApplyConfiguration, error)

ExtractResourceClaimStatus is the same as ExtractResourceClaim except that it extracts the status subresource applied configuration. Experimental!

func ResourceClaim

func ResourceClaim(name, namespace string) *ResourceClaimApplyConfiguration

ResourceClaim constructs a declarative configuration of the ResourceClaim type for use with apply.

func (*ResourceClaimApplyConfiguration) GetName

GetName retrieves the value of the Name field in the declarative configuration.

func (*ResourceClaimApplyConfiguration) WithAPIVersion

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

func (*ResourceClaimApplyConfiguration) WithAnnotations

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

func (*ResourceClaimApplyConfiguration) WithCreationTimestamp

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

func (*ResourceClaimApplyConfiguration) WithDeletionGracePeriodSeconds

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

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

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

func (*ResourceClaimApplyConfiguration) WithFinalizers

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

func (*ResourceClaimApplyConfiguration) WithGenerateName

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

func (*ResourceClaimApplyConfiguration) WithGeneration

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

func (*ResourceClaimApplyConfiguration) WithKind

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

func (*ResourceClaimApplyConfiguration) WithLabels

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

func (*ResourceClaimApplyConfiguration) WithName

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

func (*ResourceClaimApplyConfiguration) WithNamespace

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

func (*ResourceClaimApplyConfiguration) WithOwnerReferences

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

func (*ResourceClaimApplyConfiguration) WithResourceVersion

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

func (*ResourceClaimApplyConfiguration) WithSpec

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

func (*ResourceClaimApplyConfiguration) WithStatus

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

func (*ResourceClaimApplyConfiguration) WithUID

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

type ResourceClaimConsumerReferenceApplyConfiguration

type ResourceClaimConsumerReferenceApplyConfiguration struct {
	APIGroup *string    `json:"apiGroup,omitempty"`
	Resource *string    `json:"resource,omitempty"`
	Name     *string    `json:"name,omitempty"`
	UID      *types.UID `json:"uid,omitempty"`
}

ResourceClaimConsumerReferenceApplyConfiguration represents a declarative configuration of the ResourceClaimConsumerReference type for use with apply.

func ResourceClaimConsumerReference

func ResourceClaimConsumerReference() *ResourceClaimConsumerReferenceApplyConfiguration

ResourceClaimConsumerReferenceApplyConfiguration constructs a declarative configuration of the ResourceClaimConsumerReference type for use with apply.

func (*ResourceClaimConsumerReferenceApplyConfiguration) WithAPIGroup

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

func (*ResourceClaimConsumerReferenceApplyConfiguration) WithName

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

func (*ResourceClaimConsumerReferenceApplyConfiguration) WithResource

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

func (*ResourceClaimConsumerReferenceApplyConfiguration) WithUID

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

type ResourceClaimSchedulingStatusApplyConfiguration

type ResourceClaimSchedulingStatusApplyConfiguration struct {
	Name            *string  `json:"name,omitempty"`
	UnsuitableNodes []string `json:"unsuitableNodes,omitempty"`
}

ResourceClaimSchedulingStatusApplyConfiguration represents a declarative configuration of the ResourceClaimSchedulingStatus type for use with apply.

func ResourceClaimSchedulingStatus

func ResourceClaimSchedulingStatus() *ResourceClaimSchedulingStatusApplyConfiguration

ResourceClaimSchedulingStatusApplyConfiguration constructs a declarative configuration of the ResourceClaimSchedulingStatus type for use with apply.

func (*ResourceClaimSchedulingStatusApplyConfiguration) WithName

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

func (*ResourceClaimSchedulingStatusApplyConfiguration) WithUnsuitableNodes

WithUnsuitableNodes adds the given value to the UnsuitableNodes 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 UnsuitableNodes field.

type ResourceClaimSpecApplyConfiguration

type ResourceClaimSpecApplyConfiguration struct {
	Devices    *DeviceClaimApplyConfiguration `json:"devices,omitempty"`
	Controller *string                        `json:"controller,omitempty"`
}

ResourceClaimSpecApplyConfiguration represents a declarative configuration of the ResourceClaimSpec type for use with apply.

func ResourceClaimSpec

func ResourceClaimSpec() *ResourceClaimSpecApplyConfiguration

ResourceClaimSpecApplyConfiguration constructs a declarative configuration of the ResourceClaimSpec type for use with apply.

func (*ResourceClaimSpecApplyConfiguration) WithController

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

func (*ResourceClaimSpecApplyConfiguration) WithDevices

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

type ResourceClaimStatusApplyConfiguration

type ResourceClaimStatusApplyConfiguration struct {
	Allocation            *AllocationResultApplyConfiguration                `json:"allocation,omitempty"`
	ReservedFor           []ResourceClaimConsumerReferenceApplyConfiguration `json:"reservedFor,omitempty"`
	DeallocationRequested *bool                                              `json:"deallocationRequested,omitempty"`
}

ResourceClaimStatusApplyConfiguration represents a declarative configuration of the ResourceClaimStatus type for use with apply.

func ResourceClaimStatus

func ResourceClaimStatus() *ResourceClaimStatusApplyConfiguration

ResourceClaimStatusApplyConfiguration constructs a declarative configuration of the ResourceClaimStatus type for use with apply.

func (*ResourceClaimStatusApplyConfiguration) WithAllocation

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

func (*ResourceClaimStatusApplyConfiguration) WithDeallocationRequested

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

func (*ResourceClaimStatusApplyConfiguration) WithReservedFor

WithReservedFor adds the given value to the ReservedFor 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 ReservedFor field.

type ResourceClaimTemplateApplyConfiguration

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

ResourceClaimTemplateApplyConfiguration represents a declarative configuration of the ResourceClaimTemplate type for use with apply.

func ExtractResourceClaimTemplate

func ExtractResourceClaimTemplate(resourceClaimTemplate *resourcev1alpha3.ResourceClaimTemplate, fieldManager string) (*ResourceClaimTemplateApplyConfiguration, error)

ExtractResourceClaimTemplate extracts the applied configuration owned by fieldManager from resourceClaimTemplate. If no managedFields are found in resourceClaimTemplate for fieldManager, a ResourceClaimTemplateApplyConfiguration 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. resourceClaimTemplate must be a unmodified ResourceClaimTemplate API object that was retrieved from the Kubernetes API. ExtractResourceClaimTemplate 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 ExtractResourceClaimTemplateStatus

func ExtractResourceClaimTemplateStatus(resourceClaimTemplate *resourcev1alpha3.ResourceClaimTemplate, fieldManager string) (*ResourceClaimTemplateApplyConfiguration, error)

ExtractResourceClaimTemplateStatus is the same as ExtractResourceClaimTemplate except that it extracts the status subresource applied configuration. Experimental!

func ResourceClaimTemplate

func ResourceClaimTemplate(name, namespace string) *ResourceClaimTemplateApplyConfiguration

ResourceClaimTemplate constructs a declarative configuration of the ResourceClaimTemplate type for use with apply.

func (*ResourceClaimTemplateApplyConfiguration) GetName

GetName retrieves the value of the Name field in the declarative configuration.

func (*ResourceClaimTemplateApplyConfiguration) WithAPIVersion

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

func (*ResourceClaimTemplateApplyConfiguration) WithAnnotations

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

func (*ResourceClaimTemplateApplyConfiguration) WithCreationTimestamp

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

func (*ResourceClaimTemplateApplyConfiguration) WithDeletionGracePeriodSeconds

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

func (*ResourceClaimTemplateApplyConfiguration) WithDeletionTimestamp

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

func (*ResourceClaimTemplateApplyConfiguration) WithFinalizers

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

func (*ResourceClaimTemplateApplyConfiguration) WithGenerateName

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

func (*ResourceClaimTemplateApplyConfiguration) WithGeneration

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

func (*ResourceClaimTemplateApplyConfiguration) WithKind

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

func (*ResourceClaimTemplateApplyConfiguration) WithLabels

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

func (*ResourceClaimTemplateApplyConfiguration) WithName

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

func (*ResourceClaimTemplateApplyConfiguration) WithNamespace

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

func (*ResourceClaimTemplateApplyConfiguration) WithOwnerReferences

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

func (*ResourceClaimTemplateApplyConfiguration) WithResourceVersion

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

func (*ResourceClaimTemplateApplyConfiguration) WithSpec

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

func (*ResourceClaimTemplateApplyConfiguration) WithUID

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

type ResourceClaimTemplateSpecApplyConfiguration

type ResourceClaimTemplateSpecApplyConfiguration struct {
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *ResourceClaimSpecApplyConfiguration `json:"spec,omitempty"`
}

ResourceClaimTemplateSpecApplyConfiguration represents a declarative configuration of the ResourceClaimTemplateSpec type for use with apply.

func ResourceClaimTemplateSpec

func ResourceClaimTemplateSpec() *ResourceClaimTemplateSpecApplyConfiguration

ResourceClaimTemplateSpecApplyConfiguration constructs a declarative configuration of the ResourceClaimTemplateSpec type for use with apply.

func (*ResourceClaimTemplateSpecApplyConfiguration) GetName

GetName retrieves the value of the Name field in the declarative configuration.

func (*ResourceClaimTemplateSpecApplyConfiguration) WithAnnotations

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithCreationTimestamp

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithDeletionGracePeriodSeconds

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithDeletionTimestamp

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithFinalizers

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithGenerateName

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithGeneration

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithLabels

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithName

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithNamespace

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithOwnerReferences

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithResourceVersion

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithSpec

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

func (*ResourceClaimTemplateSpecApplyConfiguration) WithUID

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

type ResourcePoolApplyConfiguration

type ResourcePoolApplyConfiguration struct {
	Name               *string `json:"name,omitempty"`
	Generation         *int64  `json:"generation,omitempty"`
	ResourceSliceCount *int64  `json:"resourceSliceCount,omitempty"`
}

ResourcePoolApplyConfiguration represents a declarative configuration of the ResourcePool type for use with apply.

func ResourcePool

func ResourcePool() *ResourcePoolApplyConfiguration

ResourcePoolApplyConfiguration constructs a declarative configuration of the ResourcePool type for use with apply.

func (*ResourcePoolApplyConfiguration) WithGeneration

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

func (*ResourcePoolApplyConfiguration) WithName

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

func (*ResourcePoolApplyConfiguration) WithResourceSliceCount

func (b *ResourcePoolApplyConfiguration) WithResourceSliceCount(value int64) *ResourcePoolApplyConfiguration

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

type ResourceSliceApplyConfiguration

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

ResourceSliceApplyConfiguration represents a declarative configuration of the ResourceSlice type for use with apply.

func ExtractResourceSlice

func ExtractResourceSlice(resourceSlice *resourcev1alpha3.ResourceSlice, fieldManager string) (*ResourceSliceApplyConfiguration, error)

ExtractResourceSlice extracts the applied configuration owned by fieldManager from resourceSlice. If no managedFields are found in resourceSlice for fieldManager, a ResourceSliceApplyConfiguration 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. resourceSlice must be a unmodified ResourceSlice API object that was retrieved from the Kubernetes API. ExtractResourceSlice 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 ExtractResourceSliceStatus

func ExtractResourceSliceStatus(resourceSlice *resourcev1alpha3.ResourceSlice, fieldManager string) (*ResourceSliceApplyConfiguration, error)

ExtractResourceSliceStatus is the same as ExtractResourceSlice except that it extracts the status subresource applied configuration. Experimental!

func ResourceSlice

func ResourceSlice(name string) *ResourceSliceApplyConfiguration

ResourceSlice constructs a declarative configuration of the ResourceSlice type for use with apply.

func (*ResourceSliceApplyConfiguration) GetName

GetName retrieves the value of the Name field in the declarative configuration.

func (*ResourceSliceApplyConfiguration) WithAPIVersion

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

func (*ResourceSliceApplyConfiguration) WithAnnotations

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

func (*ResourceSliceApplyConfiguration) WithCreationTimestamp

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

func (*ResourceSliceApplyConfiguration) WithDeletionGracePeriodSeconds

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

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

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

func (*ResourceSliceApplyConfiguration) WithFinalizers

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

func (*ResourceSliceApplyConfiguration) WithGenerateName

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

func (*ResourceSliceApplyConfiguration) WithGeneration

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

func (*ResourceSliceApplyConfiguration) WithKind

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

func (*ResourceSliceApplyConfiguration) WithLabels

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

func (*ResourceSliceApplyConfiguration) WithName

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

func (*ResourceSliceApplyConfiguration) WithNamespace

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

func (*ResourceSliceApplyConfiguration) WithOwnerReferences

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

func (*ResourceSliceApplyConfiguration) WithResourceVersion

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

func (*ResourceSliceApplyConfiguration) WithSpec

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

func (*ResourceSliceApplyConfiguration) WithUID

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

type ResourceSliceSpecApplyConfiguration

type ResourceSliceSpecApplyConfiguration struct {
	Driver       *string                            `json:"driver,omitempty"`
	Pool         *ResourcePoolApplyConfiguration    `json:"pool,omitempty"`
	NodeName     *string                            `json:"nodeName,omitempty"`
	NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
	AllNodes     *bool                              `json:"allNodes,omitempty"`
	Devices      []DeviceApplyConfiguration         `json:"devices,omitempty"`
}

ResourceSliceSpecApplyConfiguration represents a declarative configuration of the ResourceSliceSpec type for use with apply.

func ResourceSliceSpec

func ResourceSliceSpec() *ResourceSliceSpecApplyConfiguration

ResourceSliceSpecApplyConfiguration constructs a declarative configuration of the ResourceSliceSpec type for use with apply.

func (*ResourceSliceSpecApplyConfiguration) WithAllNodes

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

func (*ResourceSliceSpecApplyConfiguration) WithDevices

WithDevices adds the given value to the Devices 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 Devices field.

func (*ResourceSliceSpecApplyConfiguration) WithDriver

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

func (*ResourceSliceSpecApplyConfiguration) WithNodeName

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

func (*ResourceSliceSpecApplyConfiguration) WithNodeSelector

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

func (*ResourceSliceSpecApplyConfiguration) WithPool

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.

Jump to

Keyboard shortcuts

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