Documentation ¶
Index ¶
- type CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithAPIVersion(value string) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithAnnotations(entries map[string]string) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithFinalizers(values ...string) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithGenerateName(value string) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithGeneration(value int64) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithKind(value string) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithLabels(entries map[string]string) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithName(value string) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithNamespace(value string) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithResourceVersion(value string) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithSpec(value *CSIDriverSpecApplyConfiguration) *CSIDriverApplyConfiguration
- func (b *CSIDriverApplyConfiguration) WithUID(value types.UID) *CSIDriverApplyConfiguration
- type CSIDriverSpecApplyConfiguration
- func (b *CSIDriverSpecApplyConfiguration) WithAttachRequired(value bool) *CSIDriverSpecApplyConfiguration
- func (b *CSIDriverSpecApplyConfiguration) WithFSGroupPolicy(value v1.FSGroupPolicy) *CSIDriverSpecApplyConfiguration
- func (b *CSIDriverSpecApplyConfiguration) WithPodInfoOnMount(value bool) *CSIDriverSpecApplyConfiguration
- func (b *CSIDriverSpecApplyConfiguration) WithRequiresRepublish(value bool) *CSIDriverSpecApplyConfiguration
- func (b *CSIDriverSpecApplyConfiguration) WithSELinuxMount(value bool) *CSIDriverSpecApplyConfiguration
- func (b *CSIDriverSpecApplyConfiguration) WithStorageCapacity(value bool) *CSIDriverSpecApplyConfiguration
- func (b *CSIDriverSpecApplyConfiguration) WithTokenRequests(values ...*TokenRequestApplyConfiguration) *CSIDriverSpecApplyConfiguration
- func (b *CSIDriverSpecApplyConfiguration) WithVolumeLifecycleModes(values ...v1.VolumeLifecycleMode) *CSIDriverSpecApplyConfiguration
- type CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithAPIVersion(value string) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithAnnotations(entries map[string]string) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithFinalizers(values ...string) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithGenerateName(value string) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithGeneration(value int64) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithKind(value string) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithLabels(entries map[string]string) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithName(value string) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithNamespace(value string) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithResourceVersion(value string) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithSpec(value *CSINodeSpecApplyConfiguration) *CSINodeApplyConfiguration
- func (b *CSINodeApplyConfiguration) WithUID(value types.UID) *CSINodeApplyConfiguration
- type CSINodeDriverApplyConfiguration
- func (b *CSINodeDriverApplyConfiguration) WithAllocatable(value *VolumeNodeResourcesApplyConfiguration) *CSINodeDriverApplyConfiguration
- func (b *CSINodeDriverApplyConfiguration) WithName(value string) *CSINodeDriverApplyConfiguration
- func (b *CSINodeDriverApplyConfiguration) WithNodeID(value string) *CSINodeDriverApplyConfiguration
- func (b *CSINodeDriverApplyConfiguration) WithTopologyKeys(values ...string) *CSINodeDriverApplyConfiguration
- type CSINodeSpecApplyConfiguration
- type CSIStorageCapacityApplyConfiguration
- func CSIStorageCapacity(name, namespace string) *CSIStorageCapacityApplyConfiguration
- func ExtractCSIStorageCapacity(cSIStorageCapacity *storagev1.CSIStorageCapacity, fieldManager string) (*CSIStorageCapacityApplyConfiguration, error)
- func ExtractCSIStorageCapacityStatus(cSIStorageCapacity *storagev1.CSIStorageCapacity, fieldManager string) (*CSIStorageCapacityApplyConfiguration, error)
- func (b *CSIStorageCapacityApplyConfiguration) WithAPIVersion(value string) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithAnnotations(entries map[string]string) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithCapacity(value resource.Quantity) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithFinalizers(values ...string) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithGenerateName(value string) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithGeneration(value int64) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithKind(value string) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithLabels(entries map[string]string) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithMaximumVolumeSize(value resource.Quantity) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithName(value string) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithNamespace(value string) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithNodeTopology(value *v1.LabelSelectorApplyConfiguration) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithResourceVersion(value string) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithStorageClassName(value string) *CSIStorageCapacityApplyConfiguration
- func (b *CSIStorageCapacityApplyConfiguration) WithUID(value types.UID) *CSIStorageCapacityApplyConfiguration
- type StorageClassApplyConfiguration
- func ExtractStorageClass(storageClass *storagev1.StorageClass, fieldManager string) (*StorageClassApplyConfiguration, error)
- func ExtractStorageClassStatus(storageClass *storagev1.StorageClass, fieldManager string) (*StorageClassApplyConfiguration, error)
- func StorageClass(name string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithAPIVersion(value string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithAllowVolumeExpansion(value bool) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithAllowedTopologies(values ...*applyconfigurationscorev1.TopologySelectorTermApplyConfiguration) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithAnnotations(entries map[string]string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithCreationTimestamp(value metav1.Time) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithFinalizers(values ...string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithGenerateName(value string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithGeneration(value int64) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithKind(value string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithLabels(entries map[string]string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithMountOptions(values ...string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithName(value string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithNamespace(value string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithParameters(entries map[string]string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithProvisioner(value string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithReclaimPolicy(value corev1.PersistentVolumeReclaimPolicy) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithResourceVersion(value string) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithUID(value types.UID) *StorageClassApplyConfiguration
- func (b *StorageClassApplyConfiguration) WithVolumeBindingMode(value storagev1.VolumeBindingMode) *StorageClassApplyConfiguration
- type TokenRequestApplyConfiguration
- type VolumeAttachmentApplyConfiguration
- func ExtractVolumeAttachment(volumeAttachment *apistoragev1.VolumeAttachment, fieldManager string) (*VolumeAttachmentApplyConfiguration, error)
- func ExtractVolumeAttachmentStatus(volumeAttachment *apistoragev1.VolumeAttachment, fieldManager string) (*VolumeAttachmentApplyConfiguration, error)
- func VolumeAttachment(name string) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithAPIVersion(value string) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithAnnotations(entries map[string]string) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithCreationTimestamp(value metav1.Time) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithFinalizers(values ...string) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithGenerateName(value string) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithGeneration(value int64) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithKind(value string) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithLabels(entries map[string]string) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithName(value string) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithNamespace(value string) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithResourceVersion(value string) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithSpec(value *VolumeAttachmentSpecApplyConfiguration) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithStatus(value *VolumeAttachmentStatusApplyConfiguration) *VolumeAttachmentApplyConfiguration
- func (b *VolumeAttachmentApplyConfiguration) WithUID(value types.UID) *VolumeAttachmentApplyConfiguration
- type VolumeAttachmentSourceApplyConfiguration
- type VolumeAttachmentSpecApplyConfiguration
- func (b *VolumeAttachmentSpecApplyConfiguration) WithAttacher(value string) *VolumeAttachmentSpecApplyConfiguration
- func (b *VolumeAttachmentSpecApplyConfiguration) WithNodeName(value string) *VolumeAttachmentSpecApplyConfiguration
- func (b *VolumeAttachmentSpecApplyConfiguration) WithSource(value *VolumeAttachmentSourceApplyConfiguration) *VolumeAttachmentSpecApplyConfiguration
- type VolumeAttachmentStatusApplyConfiguration
- func (b *VolumeAttachmentStatusApplyConfiguration) WithAttachError(value *VolumeErrorApplyConfiguration) *VolumeAttachmentStatusApplyConfiguration
- func (b *VolumeAttachmentStatusApplyConfiguration) WithAttached(value bool) *VolumeAttachmentStatusApplyConfiguration
- func (b *VolumeAttachmentStatusApplyConfiguration) WithAttachmentMetadata(entries map[string]string) *VolumeAttachmentStatusApplyConfiguration
- func (b *VolumeAttachmentStatusApplyConfiguration) WithDetachError(value *VolumeErrorApplyConfiguration) *VolumeAttachmentStatusApplyConfiguration
- type VolumeErrorApplyConfiguration
- type VolumeNodeResourcesApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSIDriverApplyConfiguration ¶
type CSIDriverApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *CSIDriverSpecApplyConfiguration `json:"spec,omitempty"` }
CSIDriverApplyConfiguration represents an declarative configuration of the CSIDriver type for use with apply.
func CSIDriver ¶
func CSIDriver(name string) *CSIDriverApplyConfiguration
CSIDriver constructs an declarative configuration of the CSIDriver type for use with apply.
func ExtractCSIDriver ¶
func ExtractCSIDriver(cSIDriver *apistoragev1.CSIDriver, fieldManager string) (*CSIDriverApplyConfiguration, error)
ExtractCSIDriver extracts the applied configuration owned by fieldManager from cSIDriver. If no managedFields are found in cSIDriver for fieldManager, a CSIDriverApplyConfiguration 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. cSIDriver must be a unmodified CSIDriver API object that was retrieved from the Kubernetes API. ExtractCSIDriver 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 ExtractCSIDriverStatus ¶ added in v0.22.0
func ExtractCSIDriverStatus(cSIDriver *apistoragev1.CSIDriver, fieldManager string) (*CSIDriverApplyConfiguration, error)
ExtractCSIDriverStatus is the same as ExtractCSIDriver except that it extracts the status subresource applied configuration. Experimental!
func (*CSIDriverApplyConfiguration) WithAPIVersion ¶
func (b *CSIDriverApplyConfiguration) WithAPIVersion(value string) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithAnnotations ¶
func (b *CSIDriverApplyConfiguration) WithAnnotations(entries map[string]string) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithCreationTimestamp ¶
func (b *CSIDriverApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *CSIDriverApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithDeletionTimestamp ¶
func (b *CSIDriverApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithFinalizers ¶
func (b *CSIDriverApplyConfiguration) WithFinalizers(values ...string) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithGenerateName ¶
func (b *CSIDriverApplyConfiguration) WithGenerateName(value string) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithGeneration ¶
func (b *CSIDriverApplyConfiguration) WithGeneration(value int64) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithKind ¶
func (b *CSIDriverApplyConfiguration) WithKind(value string) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithLabels ¶
func (b *CSIDriverApplyConfiguration) WithLabels(entries map[string]string) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithName ¶
func (b *CSIDriverApplyConfiguration) WithName(value string) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithNamespace ¶
func (b *CSIDriverApplyConfiguration) WithNamespace(value string) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithOwnerReferences ¶
func (b *CSIDriverApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithResourceVersion ¶
func (b *CSIDriverApplyConfiguration) WithResourceVersion(value string) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithSpec ¶
func (b *CSIDriverApplyConfiguration) WithSpec(value *CSIDriverSpecApplyConfiguration) *CSIDriverApplyConfiguration
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 (*CSIDriverApplyConfiguration) WithUID ¶
func (b *CSIDriverApplyConfiguration) WithUID(value types.UID) *CSIDriverApplyConfiguration
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 CSIDriverSpecApplyConfiguration ¶
type CSIDriverSpecApplyConfiguration struct { AttachRequired *bool `json:"attachRequired,omitempty"` PodInfoOnMount *bool `json:"podInfoOnMount,omitempty"` VolumeLifecycleModes []v1.VolumeLifecycleMode `json:"volumeLifecycleModes,omitempty"` StorageCapacity *bool `json:"storageCapacity,omitempty"` FSGroupPolicy *v1.FSGroupPolicy `json:"fsGroupPolicy,omitempty"` TokenRequests []TokenRequestApplyConfiguration `json:"tokenRequests,omitempty"` RequiresRepublish *bool `json:"requiresRepublish,omitempty"` SELinuxMount *bool `json:"seLinuxMount,omitempty"` }
CSIDriverSpecApplyConfiguration represents an declarative configuration of the CSIDriverSpec type for use with apply.
func CSIDriverSpec ¶
func CSIDriverSpec() *CSIDriverSpecApplyConfiguration
CSIDriverSpecApplyConfiguration constructs an declarative configuration of the CSIDriverSpec type for use with apply.
func (*CSIDriverSpecApplyConfiguration) WithAttachRequired ¶
func (b *CSIDriverSpecApplyConfiguration) WithAttachRequired(value bool) *CSIDriverSpecApplyConfiguration
WithAttachRequired sets the AttachRequired field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the AttachRequired field is set to the value of the last call.
func (*CSIDriverSpecApplyConfiguration) WithFSGroupPolicy ¶
func (b *CSIDriverSpecApplyConfiguration) WithFSGroupPolicy(value v1.FSGroupPolicy) *CSIDriverSpecApplyConfiguration
WithFSGroupPolicy sets the FSGroupPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FSGroupPolicy field is set to the value of the last call.
func (*CSIDriverSpecApplyConfiguration) WithPodInfoOnMount ¶
func (b *CSIDriverSpecApplyConfiguration) WithPodInfoOnMount(value bool) *CSIDriverSpecApplyConfiguration
WithPodInfoOnMount sets the PodInfoOnMount field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PodInfoOnMount field is set to the value of the last call.
func (*CSIDriverSpecApplyConfiguration) WithRequiresRepublish ¶
func (b *CSIDriverSpecApplyConfiguration) WithRequiresRepublish(value bool) *CSIDriverSpecApplyConfiguration
WithRequiresRepublish sets the RequiresRepublish field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RequiresRepublish field is set to the value of the last call.
func (*CSIDriverSpecApplyConfiguration) WithSELinuxMount ¶ added in v0.25.0
func (b *CSIDriverSpecApplyConfiguration) WithSELinuxMount(value bool) *CSIDriverSpecApplyConfiguration
WithSELinuxMount sets the SELinuxMount field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SELinuxMount field is set to the value of the last call.
func (*CSIDriverSpecApplyConfiguration) WithStorageCapacity ¶
func (b *CSIDriverSpecApplyConfiguration) WithStorageCapacity(value bool) *CSIDriverSpecApplyConfiguration
WithStorageCapacity sets the StorageCapacity field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the StorageCapacity field is set to the value of the last call.
func (*CSIDriverSpecApplyConfiguration) WithTokenRequests ¶
func (b *CSIDriverSpecApplyConfiguration) WithTokenRequests(values ...*TokenRequestApplyConfiguration) *CSIDriverSpecApplyConfiguration
WithTokenRequests adds the given value to the TokenRequests 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 TokenRequests field.
func (*CSIDriverSpecApplyConfiguration) WithVolumeLifecycleModes ¶
func (b *CSIDriverSpecApplyConfiguration) WithVolumeLifecycleModes(values ...v1.VolumeLifecycleMode) *CSIDriverSpecApplyConfiguration
WithVolumeLifecycleModes adds the given value to the VolumeLifecycleModes 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 VolumeLifecycleModes field.
type CSINodeApplyConfiguration ¶
type CSINodeApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *CSINodeSpecApplyConfiguration `json:"spec,omitempty"` }
CSINodeApplyConfiguration represents an declarative configuration of the CSINode type for use with apply.
func CSINode ¶
func CSINode(name string) *CSINodeApplyConfiguration
CSINode constructs an declarative configuration of the CSINode type for use with apply.
func ExtractCSINode ¶
func ExtractCSINode(cSINode *apistoragev1.CSINode, fieldManager string) (*CSINodeApplyConfiguration, error)
ExtractCSINode extracts the applied configuration owned by fieldManager from cSINode. If no managedFields are found in cSINode for fieldManager, a CSINodeApplyConfiguration 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. cSINode must be a unmodified CSINode API object that was retrieved from the Kubernetes API. ExtractCSINode 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 ExtractCSINodeStatus ¶ added in v0.22.0
func ExtractCSINodeStatus(cSINode *apistoragev1.CSINode, fieldManager string) (*CSINodeApplyConfiguration, error)
ExtractCSINodeStatus is the same as ExtractCSINode except that it extracts the status subresource applied configuration. Experimental!
func (*CSINodeApplyConfiguration) WithAPIVersion ¶
func (b *CSINodeApplyConfiguration) WithAPIVersion(value string) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithAnnotations ¶
func (b *CSINodeApplyConfiguration) WithAnnotations(entries map[string]string) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithCreationTimestamp ¶
func (b *CSINodeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *CSINodeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithDeletionTimestamp ¶
func (b *CSINodeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithFinalizers ¶
func (b *CSINodeApplyConfiguration) WithFinalizers(values ...string) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithGenerateName ¶
func (b *CSINodeApplyConfiguration) WithGenerateName(value string) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithGeneration ¶
func (b *CSINodeApplyConfiguration) WithGeneration(value int64) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithKind ¶
func (b *CSINodeApplyConfiguration) WithKind(value string) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithLabels ¶
func (b *CSINodeApplyConfiguration) WithLabels(entries map[string]string) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithName ¶
func (b *CSINodeApplyConfiguration) WithName(value string) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithNamespace ¶
func (b *CSINodeApplyConfiguration) WithNamespace(value string) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithOwnerReferences ¶
func (b *CSINodeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithResourceVersion ¶
func (b *CSINodeApplyConfiguration) WithResourceVersion(value string) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithSpec ¶
func (b *CSINodeApplyConfiguration) WithSpec(value *CSINodeSpecApplyConfiguration) *CSINodeApplyConfiguration
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 (*CSINodeApplyConfiguration) WithUID ¶
func (b *CSINodeApplyConfiguration) WithUID(value types.UID) *CSINodeApplyConfiguration
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 CSINodeDriverApplyConfiguration ¶
type CSINodeDriverApplyConfiguration struct { Name *string `json:"name,omitempty"` NodeID *string `json:"nodeID,omitempty"` TopologyKeys []string `json:"topologyKeys,omitempty"` Allocatable *VolumeNodeResourcesApplyConfiguration `json:"allocatable,omitempty"` }
CSINodeDriverApplyConfiguration represents an declarative configuration of the CSINodeDriver type for use with apply.
func CSINodeDriver ¶
func CSINodeDriver() *CSINodeDriverApplyConfiguration
CSINodeDriverApplyConfiguration constructs an declarative configuration of the CSINodeDriver type for use with apply.
func (*CSINodeDriverApplyConfiguration) WithAllocatable ¶
func (b *CSINodeDriverApplyConfiguration) WithAllocatable(value *VolumeNodeResourcesApplyConfiguration) *CSINodeDriverApplyConfiguration
WithAllocatable sets the Allocatable field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Allocatable field is set to the value of the last call.
func (*CSINodeDriverApplyConfiguration) WithName ¶
func (b *CSINodeDriverApplyConfiguration) WithName(value string) *CSINodeDriverApplyConfiguration
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 (*CSINodeDriverApplyConfiguration) WithNodeID ¶
func (b *CSINodeDriverApplyConfiguration) WithNodeID(value string) *CSINodeDriverApplyConfiguration
WithNodeID sets the NodeID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the NodeID field is set to the value of the last call.
func (*CSINodeDriverApplyConfiguration) WithTopologyKeys ¶
func (b *CSINodeDriverApplyConfiguration) WithTopologyKeys(values ...string) *CSINodeDriverApplyConfiguration
WithTopologyKeys adds the given value to the TopologyKeys 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 TopologyKeys field.
type CSINodeSpecApplyConfiguration ¶
type CSINodeSpecApplyConfiguration struct {
Drivers []CSINodeDriverApplyConfiguration `json:"drivers,omitempty"`
}
CSINodeSpecApplyConfiguration represents an declarative configuration of the CSINodeSpec type for use with apply.
func CSINodeSpec ¶
func CSINodeSpec() *CSINodeSpecApplyConfiguration
CSINodeSpecApplyConfiguration constructs an declarative configuration of the CSINodeSpec type for use with apply.
func (*CSINodeSpecApplyConfiguration) WithDrivers ¶
func (b *CSINodeSpecApplyConfiguration) WithDrivers(values ...*CSINodeDriverApplyConfiguration) *CSINodeSpecApplyConfiguration
WithDrivers adds the given value to the Drivers 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 Drivers field.
type CSIStorageCapacityApplyConfiguration ¶ added in v0.24.0
type CSIStorageCapacityApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` NodeTopology *v1.LabelSelectorApplyConfiguration `json:"nodeTopology,omitempty"` StorageClassName *string `json:"storageClassName,omitempty"` Capacity *resource.Quantity `json:"capacity,omitempty"` MaximumVolumeSize *resource.Quantity `json:"maximumVolumeSize,omitempty"` }
CSIStorageCapacityApplyConfiguration represents an declarative configuration of the CSIStorageCapacity type for use with apply.
func CSIStorageCapacity ¶ added in v0.24.0
func CSIStorageCapacity(name, namespace string) *CSIStorageCapacityApplyConfiguration
CSIStorageCapacity constructs an declarative configuration of the CSIStorageCapacity type for use with apply.
func ExtractCSIStorageCapacity ¶ added in v0.24.0
func ExtractCSIStorageCapacity(cSIStorageCapacity *storagev1.CSIStorageCapacity, fieldManager string) (*CSIStorageCapacityApplyConfiguration, error)
ExtractCSIStorageCapacity extracts the applied configuration owned by fieldManager from cSIStorageCapacity. If no managedFields are found in cSIStorageCapacity for fieldManager, a CSIStorageCapacityApplyConfiguration 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. cSIStorageCapacity must be a unmodified CSIStorageCapacity API object that was retrieved from the Kubernetes API. ExtractCSIStorageCapacity 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 ExtractCSIStorageCapacityStatus ¶ added in v0.24.0
func ExtractCSIStorageCapacityStatus(cSIStorageCapacity *storagev1.CSIStorageCapacity, fieldManager string) (*CSIStorageCapacityApplyConfiguration, error)
ExtractCSIStorageCapacityStatus is the same as ExtractCSIStorageCapacity except that it extracts the status subresource applied configuration. Experimental!
func (*CSIStorageCapacityApplyConfiguration) WithAPIVersion ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithAPIVersion(value string) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithAnnotations ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithAnnotations(entries map[string]string) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithCapacity ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithCapacity(value resource.Quantity) *CSIStorageCapacityApplyConfiguration
WithCapacity sets the Capacity field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Capacity field is set to the value of the last call.
func (*CSIStorageCapacityApplyConfiguration) WithCreationTimestamp ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithDeletionGracePeriodSeconds ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithDeletionTimestamp ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithFinalizers ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithFinalizers(values ...string) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithGenerateName ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithGenerateName(value string) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithGeneration ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithGeneration(value int64) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithKind ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithKind(value string) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithLabels ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithLabels(entries map[string]string) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithMaximumVolumeSize ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithMaximumVolumeSize(value resource.Quantity) *CSIStorageCapacityApplyConfiguration
WithMaximumVolumeSize sets the MaximumVolumeSize field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaximumVolumeSize field is set to the value of the last call.
func (*CSIStorageCapacityApplyConfiguration) WithName ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithName(value string) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithNamespace ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithNamespace(value string) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithNodeTopology ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithNodeTopology(value *v1.LabelSelectorApplyConfiguration) *CSIStorageCapacityApplyConfiguration
WithNodeTopology sets the NodeTopology field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the NodeTopology field is set to the value of the last call.
func (*CSIStorageCapacityApplyConfiguration) WithOwnerReferences ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithResourceVersion ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithResourceVersion(value string) *CSIStorageCapacityApplyConfiguration
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 (*CSIStorageCapacityApplyConfiguration) WithStorageClassName ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithStorageClassName(value string) *CSIStorageCapacityApplyConfiguration
WithStorageClassName sets the StorageClassName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the StorageClassName field is set to the value of the last call.
func (*CSIStorageCapacityApplyConfiguration) WithUID ¶ added in v0.24.0
func (b *CSIStorageCapacityApplyConfiguration) WithUID(value types.UID) *CSIStorageCapacityApplyConfiguration
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 StorageClassApplyConfiguration ¶
type StorageClassApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Provisioner *string `json:"provisioner,omitempty"` Parameters map[string]string `json:"parameters,omitempty"` ReclaimPolicy *corev1.PersistentVolumeReclaimPolicy `json:"reclaimPolicy,omitempty"` MountOptions []string `json:"mountOptions,omitempty"` AllowVolumeExpansion *bool `json:"allowVolumeExpansion,omitempty"` VolumeBindingMode *storagev1.VolumeBindingMode `json:"volumeBindingMode,omitempty"` AllowedTopologies []applyconfigurationscorev1.TopologySelectorTermApplyConfiguration `json:"allowedTopologies,omitempty"` }
StorageClassApplyConfiguration represents an declarative configuration of the StorageClass type for use with apply.
func ExtractStorageClass ¶
func ExtractStorageClass(storageClass *storagev1.StorageClass, fieldManager string) (*StorageClassApplyConfiguration, error)
ExtractStorageClass extracts the applied configuration owned by fieldManager from storageClass. If no managedFields are found in storageClass for fieldManager, a StorageClassApplyConfiguration 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. storageClass must be a unmodified StorageClass API object that was retrieved from the Kubernetes API. ExtractStorageClass 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 ExtractStorageClassStatus ¶ added in v0.22.0
func ExtractStorageClassStatus(storageClass *storagev1.StorageClass, fieldManager string) (*StorageClassApplyConfiguration, error)
ExtractStorageClassStatus is the same as ExtractStorageClass except that it extracts the status subresource applied configuration. Experimental!
func StorageClass ¶
func StorageClass(name string) *StorageClassApplyConfiguration
StorageClass constructs an declarative configuration of the StorageClass type for use with apply.
func (*StorageClassApplyConfiguration) WithAPIVersion ¶
func (b *StorageClassApplyConfiguration) WithAPIVersion(value string) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithAllowVolumeExpansion ¶
func (b *StorageClassApplyConfiguration) WithAllowVolumeExpansion(value bool) *StorageClassApplyConfiguration
WithAllowVolumeExpansion sets the AllowVolumeExpansion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the AllowVolumeExpansion field is set to the value of the last call.
func (*StorageClassApplyConfiguration) WithAllowedTopologies ¶
func (b *StorageClassApplyConfiguration) WithAllowedTopologies(values ...*applyconfigurationscorev1.TopologySelectorTermApplyConfiguration) *StorageClassApplyConfiguration
WithAllowedTopologies adds the given value to the AllowedTopologies 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 AllowedTopologies field.
func (*StorageClassApplyConfiguration) WithAnnotations ¶
func (b *StorageClassApplyConfiguration) WithAnnotations(entries map[string]string) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithCreationTimestamp ¶
func (b *StorageClassApplyConfiguration) WithCreationTimestamp(value metav1.Time) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *StorageClassApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithDeletionTimestamp ¶
func (b *StorageClassApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithFinalizers ¶
func (b *StorageClassApplyConfiguration) WithFinalizers(values ...string) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithGenerateName ¶
func (b *StorageClassApplyConfiguration) WithGenerateName(value string) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithGeneration ¶
func (b *StorageClassApplyConfiguration) WithGeneration(value int64) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithKind ¶
func (b *StorageClassApplyConfiguration) WithKind(value string) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithLabels ¶
func (b *StorageClassApplyConfiguration) WithLabels(entries map[string]string) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithMountOptions ¶
func (b *StorageClassApplyConfiguration) WithMountOptions(values ...string) *StorageClassApplyConfiguration
WithMountOptions adds the given value to the MountOptions 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 MountOptions field.
func (*StorageClassApplyConfiguration) WithName ¶
func (b *StorageClassApplyConfiguration) WithName(value string) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithNamespace ¶
func (b *StorageClassApplyConfiguration) WithNamespace(value string) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithOwnerReferences ¶
func (b *StorageClassApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithParameters ¶
func (b *StorageClassApplyConfiguration) WithParameters(entries map[string]string) *StorageClassApplyConfiguration
WithParameters puts the entries into the Parameters 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 Parameters field, overwriting an existing map entries in Parameters field with the same key.
func (*StorageClassApplyConfiguration) WithProvisioner ¶
func (b *StorageClassApplyConfiguration) WithProvisioner(value string) *StorageClassApplyConfiguration
WithProvisioner sets the Provisioner field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Provisioner field is set to the value of the last call.
func (*StorageClassApplyConfiguration) WithReclaimPolicy ¶
func (b *StorageClassApplyConfiguration) WithReclaimPolicy(value corev1.PersistentVolumeReclaimPolicy) *StorageClassApplyConfiguration
WithReclaimPolicy sets the ReclaimPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ReclaimPolicy field is set to the value of the last call.
func (*StorageClassApplyConfiguration) WithResourceVersion ¶
func (b *StorageClassApplyConfiguration) WithResourceVersion(value string) *StorageClassApplyConfiguration
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 (*StorageClassApplyConfiguration) WithUID ¶
func (b *StorageClassApplyConfiguration) WithUID(value types.UID) *StorageClassApplyConfiguration
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.
func (*StorageClassApplyConfiguration) WithVolumeBindingMode ¶
func (b *StorageClassApplyConfiguration) WithVolumeBindingMode(value storagev1.VolumeBindingMode) *StorageClassApplyConfiguration
WithVolumeBindingMode sets the VolumeBindingMode field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the VolumeBindingMode field is set to the value of the last call.
type TokenRequestApplyConfiguration ¶
type TokenRequestApplyConfiguration struct { Audience *string `json:"audience,omitempty"` ExpirationSeconds *int64 `json:"expirationSeconds,omitempty"` }
TokenRequestApplyConfiguration represents an declarative configuration of the TokenRequest type for use with apply.
func TokenRequest ¶
func TokenRequest() *TokenRequestApplyConfiguration
TokenRequestApplyConfiguration constructs an declarative configuration of the TokenRequest type for use with apply.
func (*TokenRequestApplyConfiguration) WithAudience ¶
func (b *TokenRequestApplyConfiguration) WithAudience(value string) *TokenRequestApplyConfiguration
WithAudience sets the Audience field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Audience field is set to the value of the last call.
func (*TokenRequestApplyConfiguration) WithExpirationSeconds ¶
func (b *TokenRequestApplyConfiguration) WithExpirationSeconds(value int64) *TokenRequestApplyConfiguration
WithExpirationSeconds sets the ExpirationSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ExpirationSeconds field is set to the value of the last call.
type VolumeAttachmentApplyConfiguration ¶
type VolumeAttachmentApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *VolumeAttachmentSpecApplyConfiguration `json:"spec,omitempty"` Status *VolumeAttachmentStatusApplyConfiguration `json:"status,omitempty"` }
VolumeAttachmentApplyConfiguration represents an declarative configuration of the VolumeAttachment type for use with apply.
func ExtractVolumeAttachment ¶
func ExtractVolumeAttachment(volumeAttachment *apistoragev1.VolumeAttachment, fieldManager string) (*VolumeAttachmentApplyConfiguration, error)
ExtractVolumeAttachment extracts the applied configuration owned by fieldManager from volumeAttachment. If no managedFields are found in volumeAttachment for fieldManager, a VolumeAttachmentApplyConfiguration 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. volumeAttachment must be a unmodified VolumeAttachment API object that was retrieved from the Kubernetes API. ExtractVolumeAttachment 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 ExtractVolumeAttachmentStatus ¶ added in v0.22.0
func ExtractVolumeAttachmentStatus(volumeAttachment *apistoragev1.VolumeAttachment, fieldManager string) (*VolumeAttachmentApplyConfiguration, error)
ExtractVolumeAttachmentStatus is the same as ExtractVolumeAttachment except that it extracts the status subresource applied configuration. Experimental!
func VolumeAttachment ¶
func VolumeAttachment(name string) *VolumeAttachmentApplyConfiguration
VolumeAttachment constructs an declarative configuration of the VolumeAttachment type for use with apply.
func (*VolumeAttachmentApplyConfiguration) WithAPIVersion ¶
func (b *VolumeAttachmentApplyConfiguration) WithAPIVersion(value string) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithAnnotations ¶
func (b *VolumeAttachmentApplyConfiguration) WithAnnotations(entries map[string]string) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithCreationTimestamp ¶
func (b *VolumeAttachmentApplyConfiguration) WithCreationTimestamp(value metav1.Time) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *VolumeAttachmentApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithDeletionTimestamp ¶
func (b *VolumeAttachmentApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithFinalizers ¶
func (b *VolumeAttachmentApplyConfiguration) WithFinalizers(values ...string) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithGenerateName ¶
func (b *VolumeAttachmentApplyConfiguration) WithGenerateName(value string) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithGeneration ¶
func (b *VolumeAttachmentApplyConfiguration) WithGeneration(value int64) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithKind ¶
func (b *VolumeAttachmentApplyConfiguration) WithKind(value string) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithLabels ¶
func (b *VolumeAttachmentApplyConfiguration) WithLabels(entries map[string]string) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithName ¶
func (b *VolumeAttachmentApplyConfiguration) WithName(value string) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithNamespace ¶
func (b *VolumeAttachmentApplyConfiguration) WithNamespace(value string) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithOwnerReferences ¶
func (b *VolumeAttachmentApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithResourceVersion ¶
func (b *VolumeAttachmentApplyConfiguration) WithResourceVersion(value string) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithSpec ¶
func (b *VolumeAttachmentApplyConfiguration) WithSpec(value *VolumeAttachmentSpecApplyConfiguration) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithStatus ¶
func (b *VolumeAttachmentApplyConfiguration) WithStatus(value *VolumeAttachmentStatusApplyConfiguration) *VolumeAttachmentApplyConfiguration
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 (*VolumeAttachmentApplyConfiguration) WithUID ¶
func (b *VolumeAttachmentApplyConfiguration) WithUID(value types.UID) *VolumeAttachmentApplyConfiguration
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 VolumeAttachmentSourceApplyConfiguration ¶
type VolumeAttachmentSourceApplyConfiguration struct { PersistentVolumeName *string `json:"persistentVolumeName,omitempty"` InlineVolumeSpec *v1.PersistentVolumeSpecApplyConfiguration `json:"inlineVolumeSpec,omitempty"` }
VolumeAttachmentSourceApplyConfiguration represents an declarative configuration of the VolumeAttachmentSource type for use with apply.
func VolumeAttachmentSource ¶
func VolumeAttachmentSource() *VolumeAttachmentSourceApplyConfiguration
VolumeAttachmentSourceApplyConfiguration constructs an declarative configuration of the VolumeAttachmentSource type for use with apply.
func (*VolumeAttachmentSourceApplyConfiguration) WithInlineVolumeSpec ¶
func (b *VolumeAttachmentSourceApplyConfiguration) WithInlineVolumeSpec(value *v1.PersistentVolumeSpecApplyConfiguration) *VolumeAttachmentSourceApplyConfiguration
WithInlineVolumeSpec sets the InlineVolumeSpec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the InlineVolumeSpec field is set to the value of the last call.
func (*VolumeAttachmentSourceApplyConfiguration) WithPersistentVolumeName ¶
func (b *VolumeAttachmentSourceApplyConfiguration) WithPersistentVolumeName(value string) *VolumeAttachmentSourceApplyConfiguration
WithPersistentVolumeName sets the PersistentVolumeName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PersistentVolumeName field is set to the value of the last call.
type VolumeAttachmentSpecApplyConfiguration ¶
type VolumeAttachmentSpecApplyConfiguration struct { Attacher *string `json:"attacher,omitempty"` Source *VolumeAttachmentSourceApplyConfiguration `json:"source,omitempty"` NodeName *string `json:"nodeName,omitempty"` }
VolumeAttachmentSpecApplyConfiguration represents an declarative configuration of the VolumeAttachmentSpec type for use with apply.
func VolumeAttachmentSpec ¶
func VolumeAttachmentSpec() *VolumeAttachmentSpecApplyConfiguration
VolumeAttachmentSpecApplyConfiguration constructs an declarative configuration of the VolumeAttachmentSpec type for use with apply.
func (*VolumeAttachmentSpecApplyConfiguration) WithAttacher ¶
func (b *VolumeAttachmentSpecApplyConfiguration) WithAttacher(value string) *VolumeAttachmentSpecApplyConfiguration
WithAttacher sets the Attacher field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Attacher field is set to the value of the last call.
func (*VolumeAttachmentSpecApplyConfiguration) WithNodeName ¶
func (b *VolumeAttachmentSpecApplyConfiguration) WithNodeName(value string) *VolumeAttachmentSpecApplyConfiguration
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 (*VolumeAttachmentSpecApplyConfiguration) WithSource ¶
func (b *VolumeAttachmentSpecApplyConfiguration) WithSource(value *VolumeAttachmentSourceApplyConfiguration) *VolumeAttachmentSpecApplyConfiguration
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 VolumeAttachmentStatusApplyConfiguration ¶
type VolumeAttachmentStatusApplyConfiguration struct { Attached *bool `json:"attached,omitempty"` AttachmentMetadata map[string]string `json:"attachmentMetadata,omitempty"` AttachError *VolumeErrorApplyConfiguration `json:"attachError,omitempty"` DetachError *VolumeErrorApplyConfiguration `json:"detachError,omitempty"` }
VolumeAttachmentStatusApplyConfiguration represents an declarative configuration of the VolumeAttachmentStatus type for use with apply.
func VolumeAttachmentStatus ¶
func VolumeAttachmentStatus() *VolumeAttachmentStatusApplyConfiguration
VolumeAttachmentStatusApplyConfiguration constructs an declarative configuration of the VolumeAttachmentStatus type for use with apply.
func (*VolumeAttachmentStatusApplyConfiguration) WithAttachError ¶
func (b *VolumeAttachmentStatusApplyConfiguration) WithAttachError(value *VolumeErrorApplyConfiguration) *VolumeAttachmentStatusApplyConfiguration
WithAttachError sets the AttachError field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the AttachError field is set to the value of the last call.
func (*VolumeAttachmentStatusApplyConfiguration) WithAttached ¶
func (b *VolumeAttachmentStatusApplyConfiguration) WithAttached(value bool) *VolumeAttachmentStatusApplyConfiguration
WithAttached sets the Attached field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Attached field is set to the value of the last call.
func (*VolumeAttachmentStatusApplyConfiguration) WithAttachmentMetadata ¶
func (b *VolumeAttachmentStatusApplyConfiguration) WithAttachmentMetadata(entries map[string]string) *VolumeAttachmentStatusApplyConfiguration
WithAttachmentMetadata puts the entries into the AttachmentMetadata 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 AttachmentMetadata field, overwriting an existing map entries in AttachmentMetadata field with the same key.
func (*VolumeAttachmentStatusApplyConfiguration) WithDetachError ¶
func (b *VolumeAttachmentStatusApplyConfiguration) WithDetachError(value *VolumeErrorApplyConfiguration) *VolumeAttachmentStatusApplyConfiguration
WithDetachError sets the DetachError field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DetachError field is set to the value of the last call.
type VolumeErrorApplyConfiguration ¶
type VolumeErrorApplyConfiguration struct { Time *v1.Time `json:"time,omitempty"` Message *string `json:"message,omitempty"` }
VolumeErrorApplyConfiguration represents an declarative configuration of the VolumeError type for use with apply.
func VolumeError ¶
func VolumeError() *VolumeErrorApplyConfiguration
VolumeErrorApplyConfiguration constructs an declarative configuration of the VolumeError type for use with apply.
func (*VolumeErrorApplyConfiguration) WithMessage ¶
func (b *VolumeErrorApplyConfiguration) WithMessage(value string) *VolumeErrorApplyConfiguration
WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.
func (*VolumeErrorApplyConfiguration) WithTime ¶
func (b *VolumeErrorApplyConfiguration) WithTime(value v1.Time) *VolumeErrorApplyConfiguration
WithTime sets the Time field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Time field is set to the value of the last call.
type VolumeNodeResourcesApplyConfiguration ¶
type VolumeNodeResourcesApplyConfiguration struct {
Count *int32 `json:"count,omitempty"`
}
VolumeNodeResourcesApplyConfiguration represents an declarative configuration of the VolumeNodeResources type for use with apply.
func VolumeNodeResources ¶
func VolumeNodeResources() *VolumeNodeResourcesApplyConfiguration
VolumeNodeResourcesApplyConfiguration constructs an declarative configuration of the VolumeNodeResources type for use with apply.
func (*VolumeNodeResourcesApplyConfiguration) WithCount ¶
func (b *VolumeNodeResourcesApplyConfiguration) WithCount(value int32) *VolumeNodeResourcesApplyConfiguration
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.