v1

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CSIDriverBlank = (&CSIDriverDie{}).DieFeed(storagev1.CSIDriver{})
View Source
var CSIDriverSpecBlank = (&CSIDriverSpecDie{}).DieFeed(storagev1.CSIDriverSpec{})
View Source
var CSINodeBlank = (&CSINodeDie{}).DieFeed(storagev1.CSINode{})
View Source
var CSINodeDriverBlank = (&CSINodeDriverDie{}).DieFeed(storagev1.CSINodeDriver{})
View Source
var CSINodeSpecBlank = (&CSINodeSpecDie{}).DieFeed(storagev1.CSINodeSpec{})
View Source
var StorageClassBlank = (&StorageClassDie{}).DieFeed(storagev1.StorageClass{})
View Source
var TokenRequestBlank = (&TokenRequestDie{}).DieFeed(storagev1.TokenRequest{})
View Source
var VolumeAttachmentBlank = (&VolumeAttachmentDie{}).DieFeed(storagev1.VolumeAttachment{})
View Source
var VolumeAttachmentSourceBlank = (&VolumeAttachmentSourceDie{}).DieFeed(storagev1.VolumeAttachmentSource{})
View Source
var VolumeAttachmentSpecBlank = (&VolumeAttachmentSpecDie{}).DieFeed(storagev1.VolumeAttachmentSpec{})
View Source
var VolumeAttachmentStatusBlank = (&VolumeAttachmentStatusDie{}).DieFeed(storagev1.VolumeAttachmentStatus{})
View Source
var VolumeErrorBlank = (&VolumeErrorDie{}).DieFeed(storagev1.VolumeError{})
View Source
var VolumeNodeResourcesBlank = (&VolumeNodeResourcesDie{}).DieFeed(storagev1.VolumeNodeResources{})

Functions

This section is empty.

Types

type CSIDriverDie

type CSIDriverDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*CSIDriverDie) APIVersion added in v0.5.0

func (d *CSIDriverDie) APIVersion(v string) *CSIDriverDie

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*CSIDriverDie) DeepCopy

func (d *CSIDriverDie) DeepCopy() *CSIDriverDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CSIDriverDie) DeepCopyObject

func (d *CSIDriverDie) DeepCopyObject() runtime.Object

func (*CSIDriverDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CSIDriverDie) DieFeedJSON added in v0.8.0

func (d *CSIDriverDie) DieFeedJSON(j []byte) *CSIDriverDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CSIDriverDie) DieFeedPtr

func (d *CSIDriverDie) DieFeedPtr(r *storagev1.CSIDriver) *CSIDriverDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CSIDriverDie) DieFeedRawExtension added in v0.5.0

func (d *CSIDriverDie) DieFeedRawExtension(raw runtime.RawExtension) *CSIDriverDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CSIDriverDie) DieFeedYAML added in v0.8.0

func (d *CSIDriverDie) DieFeedYAML(y []byte) *CSIDriverDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CSIDriverDie) DieFeedYAMLFile added in v0.8.0

func (d *CSIDriverDie) DieFeedYAMLFile(name string) *CSIDriverDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CSIDriverDie) DieImmutable

func (d *CSIDriverDie) DieImmutable(immutable bool) *CSIDriverDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CSIDriverDie) DieRelease

func (d *CSIDriverDie) DieRelease() storagev1.CSIDriver

DieRelease returns the resource managed by the die.

func (*CSIDriverDie) DieReleaseJSON added in v0.8.0

func (d *CSIDriverDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CSIDriverDie) DieReleasePtr

func (d *CSIDriverDie) DieReleasePtr() *storagev1.CSIDriver

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CSIDriverDie) DieReleaseRawExtension added in v0.5.0

func (d *CSIDriverDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CSIDriverDie) DieReleaseUnstructured

func (d *CSIDriverDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*CSIDriverDie) DieReleaseYAML added in v0.8.0

func (d *CSIDriverDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CSIDriverDie) DieStamp

func (d *CSIDriverDie) DieStamp(fn func(r *storagev1.CSIDriver)) *CSIDriverDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CSIDriverDie) DieStampAt added in v0.8.0

func (d *CSIDriverDie) DieStampAt(jp string, fn interface{}) *CSIDriverDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CSIDriverDie) DieWith added in v0.9.0

func (d *CSIDriverDie) DieWith(fns ...func(d *CSIDriverDie)) *CSIDriverDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CSIDriverDie) GetObjectKind

func (d *CSIDriverDie) GetObjectKind() schema.ObjectKind

func (*CSIDriverDie) Kind added in v0.5.0

func (d *CSIDriverDie) Kind(v string) *CSIDriverDie

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*CSIDriverDie) MarshalJSON

func (d *CSIDriverDie) MarshalJSON() ([]byte, error)

func (*CSIDriverDie) MetadataDie

func (d *CSIDriverDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CSIDriverDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*CSIDriverDie) Spec

spec represents the specification of the CSI Driver.

func (*CSIDriverDie) SpecDie

func (d *CSIDriverDie) SpecDie(fn func(d *CSIDriverSpecDie)) *CSIDriverDie

SpecDie stamps the resource's spec field with a mutable die.

func (*CSIDriverDie) UnmarshalJSON

func (d *CSIDriverDie) UnmarshalJSON(b []byte) error

type CSIDriverSpecDie

type CSIDriverSpecDie struct {
	// contains filtered or unexported fields
}

func (*CSIDriverSpecDie) AttachRequired

func (d *CSIDriverSpecDie) AttachRequired(v *bool) *CSIDriverSpecDie

attachRequired indicates this CSI volume driver requires an attach

operation (because it implements the CSI ControllerPublishVolume()

method), and that the Kubernetes attach detach controller should call

the attach volume interface which checks the volumeattachment status

and waits until the volume is attached before proceeding to mounting.

The CSI external-attacher coordinates with CSI volume driver and updates

the volumeattachment status when the attach operation is complete.

If the CSIDriverRegistry feature gate is enabled and the value is

specified to false, the attach operation will be skipped.

Otherwise the attach operation will be called.

This field is immutable.

func (*CSIDriverSpecDie) DeepCopy

func (d *CSIDriverSpecDie) DeepCopy() *CSIDriverSpecDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CSIDriverSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CSIDriverSpecDie) DieFeedJSON added in v0.8.0

func (d *CSIDriverSpecDie) DieFeedJSON(j []byte) *CSIDriverSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CSIDriverSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CSIDriverSpecDie) DieFeedRawExtension added in v0.5.0

func (d *CSIDriverSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *CSIDriverSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CSIDriverSpecDie) DieFeedYAML added in v0.8.0

func (d *CSIDriverSpecDie) DieFeedYAML(y []byte) *CSIDriverSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CSIDriverSpecDie) DieFeedYAMLFile added in v0.8.0

func (d *CSIDriverSpecDie) DieFeedYAMLFile(name string) *CSIDriverSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CSIDriverSpecDie) DieImmutable

func (d *CSIDriverSpecDie) DieImmutable(immutable bool) *CSIDriverSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CSIDriverSpecDie) DieRelease

func (d *CSIDriverSpecDie) DieRelease() storagev1.CSIDriverSpec

DieRelease returns the resource managed by the die.

func (*CSIDriverSpecDie) DieReleaseJSON added in v0.8.0

func (d *CSIDriverSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CSIDriverSpecDie) DieReleasePtr

func (d *CSIDriverSpecDie) DieReleasePtr() *storagev1.CSIDriverSpec

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CSIDriverSpecDie) DieReleaseRawExtension added in v0.5.0

func (d *CSIDriverSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CSIDriverSpecDie) DieReleaseYAML added in v0.8.0

func (d *CSIDriverSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CSIDriverSpecDie) DieStamp

func (d *CSIDriverSpecDie) DieStamp(fn func(r *storagev1.CSIDriverSpec)) *CSIDriverSpecDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CSIDriverSpecDie) DieStampAt added in v0.8.0

func (d *CSIDriverSpecDie) DieStampAt(jp string, fn interface{}) *CSIDriverSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CSIDriverSpecDie) DieWith added in v0.9.0

func (d *CSIDriverSpecDie) DieWith(fns ...func(d *CSIDriverSpecDie)) *CSIDriverSpecDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CSIDriverSpecDie) FSGroupPolicy

fsGroupPolicy defines if the underlying volume supports changing ownership and

permission of the volume before being mounted.

Refer to the specific FSGroupPolicy values for additional details.

This field is immutable.

Defaults to ReadWriteOnceWithFSType, which will examine each volume

to determine if Kubernetes should modify ownership and permissions of the volume.

With the default policy the defined fsGroup will only be applied

if a fstype is defined and the volume's access mode contains ReadWriteOnce.

func (*CSIDriverSpecDie) PodInfoOnMount

func (d *CSIDriverSpecDie) PodInfoOnMount(v *bool) *CSIDriverSpecDie

podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.)

during mount operations, if set to true.

If set to false, pod information will not be passed on mount.

Default is false.

The CSI driver specifies podInfoOnMount as part of driver deployment.

If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls.

The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.

The following VolumeContext will be passed if podInfoOnMount is set to true.

This list might grow, but the prefix will be used.

"csi.storage.k8s.io/pod.name": pod.Name

"csi.storage.k8s.io/pod.namespace": pod.Namespace

"csi.storage.k8s.io/pod.uid": string(pod.UID)

"csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume

defined by a CSIVolumeSource, otherwise "false"

"csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only

required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.

Other drivers can leave pod info disabled and/or ignore this field.

As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when

deployed on such a cluster and the deployment determines which mode that is, for example

via a command line parameter of the driver.

This field is immutable.

func (*CSIDriverSpecDie) RequiresRepublish

func (d *CSIDriverSpecDie) RequiresRepublish(v *bool) *CSIDriverSpecDie

requiresRepublish indicates the CSI driver wants `NodePublishVolume`

being periodically called to reflect any possible change in the mounted

volume. This field defaults to false.

Note: After a successful initial NodePublishVolume call, subsequent calls

to NodePublishVolume should only update the contents of the volume. New

mount points will not be seen by a running container.

func (*CSIDriverSpecDie) SELinuxMount added in v0.6.0

func (d *CSIDriverSpecDie) SELinuxMount(v *bool) *CSIDriverSpecDie

seLinuxMount specifies if the CSI driver supports "-o context"

mount option.

When "true", the CSI driver must ensure that all volumes provided by this CSI

driver can be mounted separately with different `-o context` options. This is

typical for storage backends that provide volumes as filesystems on block

devices or as independent shared volumes.

Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount

option when mounting a ReadWriteOncePod volume used in Pod that has

explicitly set SELinux context. In the future, it may be expanded to other

volume AccessModes. In any case, Kubernetes will ensure that the volume is

mounted only with a single SELinux context.

When "false", Kubernetes won't pass any special SELinux mount options to the driver.

This is typical for volumes that represent subdirectories of a bigger shared filesystem.

Default is "false".

func (*CSIDriverSpecDie) StorageCapacity

func (d *CSIDriverSpecDie) StorageCapacity(v *bool) *CSIDriverSpecDie

storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage

capacity that the driver deployment will report by creating

CSIStorageCapacity objects with capacity information, if set to true.

The check can be enabled immediately when deploying a driver.

In that case, provisioning new volumes with late binding

will pause until the driver deployment has published

some suitable CSIStorageCapacity object.

Alternatively, the driver can be deployed with the field

unset or false and it can be flipped later when storage

capacity information has been published.

This field was immutable in Kubernetes <= 1.22 and now is mutable.

func (*CSIDriverSpecDie) TokenRequests

func (d *CSIDriverSpecDie) TokenRequests(v ...storagev1.TokenRequest) *CSIDriverSpecDie

tokenRequests indicates the CSI driver needs pods' service account

tokens it is mounting volume for to do necessary authentication. Kubelet

will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.

The CSI driver should parse and validate the following VolumeContext:

"csi.storage.k8s.io/serviceAccount.tokens": {

"<audience>": {

"token": <token>,

"expirationTimestamp": <expiration timestamp in RFC3339>,

},

...

}

Note: Audience in each TokenRequest should be different and at

most one token is empty string. To receive a new token after expiry,

RequiresRepublish can be used to trigger NodePublishVolume periodically.

func (*CSIDriverSpecDie) TokenRequestsDie

func (d *CSIDriverSpecDie) TokenRequestsDie(requests ...*TokenRequestDie) *CSIDriverSpecDie

func (*CSIDriverSpecDie) VolumeLifecycleModes

func (d *CSIDriverSpecDie) VolumeLifecycleModes(v ...storagev1.VolumeLifecycleMode) *CSIDriverSpecDie

volumeLifecycleModes defines what kind of volumes this CSI volume driver supports.

The default if the list is empty is "Persistent", which is the usage defined by the

CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.

The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec

with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod.

A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.

For more information about implementing this mode, see

https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html

A driver can support one or more of these modes and more modes may be added in the future.

This field is beta.

This field is immutable.

type CSINodeDie

type CSINodeDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*CSINodeDie) APIVersion added in v0.5.0

func (d *CSINodeDie) APIVersion(v string) *CSINodeDie

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*CSINodeDie) DeepCopy

func (d *CSINodeDie) DeepCopy() *CSINodeDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CSINodeDie) DeepCopyObject

func (d *CSINodeDie) DeepCopyObject() runtime.Object

func (*CSINodeDie) DieFeed

func (d *CSINodeDie) DieFeed(r storagev1.CSINode) *CSINodeDie

DieFeed returns a new die with the provided resource.

func (*CSINodeDie) DieFeedJSON added in v0.8.0

func (d *CSINodeDie) DieFeedJSON(j []byte) *CSINodeDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CSINodeDie) DieFeedPtr

func (d *CSINodeDie) DieFeedPtr(r *storagev1.CSINode) *CSINodeDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CSINodeDie) DieFeedRawExtension added in v0.5.0

func (d *CSINodeDie) DieFeedRawExtension(raw runtime.RawExtension) *CSINodeDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CSINodeDie) DieFeedYAML added in v0.8.0

func (d *CSINodeDie) DieFeedYAML(y []byte) *CSINodeDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CSINodeDie) DieFeedYAMLFile added in v0.8.0

func (d *CSINodeDie) DieFeedYAMLFile(name string) *CSINodeDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CSINodeDie) DieImmutable

func (d *CSINodeDie) DieImmutable(immutable bool) *CSINodeDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CSINodeDie) DieRelease

func (d *CSINodeDie) DieRelease() storagev1.CSINode

DieRelease returns the resource managed by the die.

func (*CSINodeDie) DieReleaseJSON added in v0.8.0

func (d *CSINodeDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CSINodeDie) DieReleasePtr

func (d *CSINodeDie) DieReleasePtr() *storagev1.CSINode

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CSINodeDie) DieReleaseRawExtension added in v0.5.0

func (d *CSINodeDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CSINodeDie) DieReleaseUnstructured

func (d *CSINodeDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*CSINodeDie) DieReleaseYAML added in v0.8.0

func (d *CSINodeDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CSINodeDie) DieStamp

func (d *CSINodeDie) DieStamp(fn func(r *storagev1.CSINode)) *CSINodeDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CSINodeDie) DieStampAt added in v0.8.0

func (d *CSINodeDie) DieStampAt(jp string, fn interface{}) *CSINodeDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CSINodeDie) DieWith added in v0.9.0

func (d *CSINodeDie) DieWith(fns ...func(d *CSINodeDie)) *CSINodeDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CSINodeDie) GetObjectKind

func (d *CSINodeDie) GetObjectKind() schema.ObjectKind

func (*CSINodeDie) Kind added in v0.5.0

func (d *CSINodeDie) Kind(v string) *CSINodeDie

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*CSINodeDie) MarshalJSON

func (d *CSINodeDie) MarshalJSON() ([]byte, error)

func (*CSINodeDie) MetadataDie

func (d *CSINodeDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CSINodeDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*CSINodeDie) Spec

spec is the specification of CSINode

func (*CSINodeDie) SpecDie

func (d *CSINodeDie) SpecDie(fn func(d *CSINodeSpecDie)) *CSINodeDie

SpecDie stamps the resource's spec field with a mutable die.

func (*CSINodeDie) UnmarshalJSON

func (d *CSINodeDie) UnmarshalJSON(b []byte) error

type CSINodeDriverDie

type CSINodeDriverDie struct {
	// contains filtered or unexported fields
}

func (*CSINodeDriverDie) Allocatable

allocatable represents the volume resources of a node that are available for scheduling.

This field is beta.

func (*CSINodeDriverDie) AllocatableDie

func (d *CSINodeDriverDie) AllocatableDie(fn func(d *VolumeNodeResourcesDie)) *CSINodeDriverDie

func (*CSINodeDriverDie) DeepCopy

func (d *CSINodeDriverDie) DeepCopy() *CSINodeDriverDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CSINodeDriverDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CSINodeDriverDie) DieFeedJSON added in v0.8.0

func (d *CSINodeDriverDie) DieFeedJSON(j []byte) *CSINodeDriverDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CSINodeDriverDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CSINodeDriverDie) DieFeedRawExtension added in v0.5.0

func (d *CSINodeDriverDie) DieFeedRawExtension(raw runtime.RawExtension) *CSINodeDriverDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CSINodeDriverDie) DieFeedYAML added in v0.8.0

func (d *CSINodeDriverDie) DieFeedYAML(y []byte) *CSINodeDriverDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CSINodeDriverDie) DieFeedYAMLFile added in v0.8.0

func (d *CSINodeDriverDie) DieFeedYAMLFile(name string) *CSINodeDriverDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CSINodeDriverDie) DieImmutable

func (d *CSINodeDriverDie) DieImmutable(immutable bool) *CSINodeDriverDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CSINodeDriverDie) DieRelease

func (d *CSINodeDriverDie) DieRelease() storagev1.CSINodeDriver

DieRelease returns the resource managed by the die.

func (*CSINodeDriverDie) DieReleaseJSON added in v0.8.0

func (d *CSINodeDriverDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CSINodeDriverDie) DieReleasePtr

func (d *CSINodeDriverDie) DieReleasePtr() *storagev1.CSINodeDriver

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CSINodeDriverDie) DieReleaseRawExtension added in v0.5.0

func (d *CSINodeDriverDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CSINodeDriverDie) DieReleaseYAML added in v0.8.0

func (d *CSINodeDriverDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CSINodeDriverDie) DieStamp

func (d *CSINodeDriverDie) DieStamp(fn func(r *storagev1.CSINodeDriver)) *CSINodeDriverDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CSINodeDriverDie) DieStampAt added in v0.8.0

func (d *CSINodeDriverDie) DieStampAt(jp string, fn interface{}) *CSINodeDriverDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CSINodeDriverDie) DieWith added in v0.9.0

func (d *CSINodeDriverDie) DieWith(fns ...func(d *CSINodeDriverDie)) *CSINodeDriverDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CSINodeDriverDie) Name

name represents the name of the CSI driver that this object refers to.

This MUST be the same name returned by the CSI GetPluginName() call for

that driver.

func (*CSINodeDriverDie) NodeID

nodeID of the node from the driver point of view.

This field enables Kubernetes to communicate with storage systems that do

not share the same nomenclature for nodes. For example, Kubernetes may

refer to a given node as "node1", but the storage system may refer to

the same node as "nodeA". When Kubernetes issues a command to the storage

system to attach a volume to a specific node, it can use this field to

refer to the node name using the ID that the storage system will

understand, e.g. "nodeA" instead of "node1". This field is required.

func (*CSINodeDriverDie) TopologyKeys

func (d *CSINodeDriverDie) TopologyKeys(v ...string) *CSINodeDriverDie

topologyKeys is the list of keys supported by the driver.

When a driver is initialized on a cluster, it provides a set of topology

keys that it understands (e.g. "company.com/zone", "company.com/region").

When a driver is initialized on a node, it provides the same topology keys

along with values. Kubelet will expose these topology keys as labels

on its own node object.

When Kubernetes does topology aware provisioning, it can use this list to

determine which labels it should retrieve from the node object and pass

back to the driver.

It is possible for different nodes to use different topology keys.

This can be empty if driver does not support topology.

type CSINodeSpecDie

type CSINodeSpecDie struct {
	// contains filtered or unexported fields
}

func (*CSINodeSpecDie) DeepCopy

func (d *CSINodeSpecDie) DeepCopy() *CSINodeSpecDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CSINodeSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CSINodeSpecDie) DieFeedJSON added in v0.8.0

func (d *CSINodeSpecDie) DieFeedJSON(j []byte) *CSINodeSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CSINodeSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CSINodeSpecDie) DieFeedRawExtension added in v0.5.0

func (d *CSINodeSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *CSINodeSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CSINodeSpecDie) DieFeedYAML added in v0.8.0

func (d *CSINodeSpecDie) DieFeedYAML(y []byte) *CSINodeSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CSINodeSpecDie) DieFeedYAMLFile added in v0.8.0

func (d *CSINodeSpecDie) DieFeedYAMLFile(name string) *CSINodeSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CSINodeSpecDie) DieImmutable

func (d *CSINodeSpecDie) DieImmutable(immutable bool) *CSINodeSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CSINodeSpecDie) DieRelease

func (d *CSINodeSpecDie) DieRelease() storagev1.CSINodeSpec

DieRelease returns the resource managed by the die.

func (*CSINodeSpecDie) DieReleaseJSON added in v0.8.0

func (d *CSINodeSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CSINodeSpecDie) DieReleasePtr

func (d *CSINodeSpecDie) DieReleasePtr() *storagev1.CSINodeSpec

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CSINodeSpecDie) DieReleaseRawExtension added in v0.5.0

func (d *CSINodeSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CSINodeSpecDie) DieReleaseYAML added in v0.8.0

func (d *CSINodeSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CSINodeSpecDie) DieStamp

func (d *CSINodeSpecDie) DieStamp(fn func(r *storagev1.CSINodeSpec)) *CSINodeSpecDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CSINodeSpecDie) DieStampAt added in v0.8.0

func (d *CSINodeSpecDie) DieStampAt(jp string, fn interface{}) *CSINodeSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CSINodeSpecDie) DieWith added in v0.9.0

func (d *CSINodeSpecDie) DieWith(fns ...func(d *CSINodeSpecDie)) *CSINodeSpecDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CSINodeSpecDie) Drivers

drivers is a list of information of all CSI Drivers existing on a node.

If all drivers in the list are uninstalled, this can become empty.

func (*CSINodeSpecDie) DriversDie

func (d *CSINodeSpecDie) DriversDie(drivers ...*CSINodeDriverDie) *CSINodeSpecDie

type StorageClassDie

type StorageClassDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*StorageClassDie) APIVersion added in v0.5.0

func (d *StorageClassDie) APIVersion(v string) *StorageClassDie

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*StorageClassDie) AddParameter

func (d *StorageClassDie) AddParameter(key, value string) *StorageClassDie

func (*StorageClassDie) AllowVolumeExpansion

func (d *StorageClassDie) AllowVolumeExpansion(v *bool) *StorageClassDie

allowVolumeExpansion shows whether the storage class allow volume expand.

func (*StorageClassDie) AllowedTopologies

func (d *StorageClassDie) AllowedTopologies(v ...corev1.TopologySelectorTerm) *StorageClassDie

allowedTopologies restrict the node topologies where volumes can be dynamically provisioned.

Each volume plugin defines its own supported topology specifications.

An empty TopologySelectorTerm list means there is no topology restriction.

This field is only honored by servers that enable the VolumeScheduling feature.

func (*StorageClassDie) AllowedTopologiesDie

func (d *StorageClassDie) AllowedTopologiesDie(topologies ...*diecorev1.TopologySelectorTermDie) *StorageClassDie

func (*StorageClassDie) DeepCopy

func (d *StorageClassDie) DeepCopy() *StorageClassDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*StorageClassDie) DeepCopyObject

func (d *StorageClassDie) DeepCopyObject() runtime.Object

func (*StorageClassDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*StorageClassDie) DieFeedJSON added in v0.8.0

func (d *StorageClassDie) DieFeedJSON(j []byte) *StorageClassDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*StorageClassDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*StorageClassDie) DieFeedRawExtension added in v0.5.0

func (d *StorageClassDie) DieFeedRawExtension(raw runtime.RawExtension) *StorageClassDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StorageClassDie) DieFeedYAML added in v0.8.0

func (d *StorageClassDie) DieFeedYAML(y []byte) *StorageClassDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*StorageClassDie) DieFeedYAMLFile added in v0.8.0

func (d *StorageClassDie) DieFeedYAMLFile(name string) *StorageClassDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*StorageClassDie) DieImmutable

func (d *StorageClassDie) DieImmutable(immutable bool) *StorageClassDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*StorageClassDie) DieRelease

func (d *StorageClassDie) DieRelease() storagev1.StorageClass

DieRelease returns the resource managed by the die.

func (*StorageClassDie) DieReleaseJSON added in v0.8.0

func (d *StorageClassDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*StorageClassDie) DieReleasePtr

func (d *StorageClassDie) DieReleasePtr() *storagev1.StorageClass

DieReleasePtr returns a pointer to the resource managed by the die.

func (*StorageClassDie) DieReleaseRawExtension added in v0.5.0

func (d *StorageClassDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*StorageClassDie) DieReleaseUnstructured

func (d *StorageClassDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*StorageClassDie) DieReleaseYAML added in v0.8.0

func (d *StorageClassDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*StorageClassDie) DieStamp

func (d *StorageClassDie) DieStamp(fn func(r *storagev1.StorageClass)) *StorageClassDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*StorageClassDie) DieStampAt added in v0.8.0

func (d *StorageClassDie) DieStampAt(jp string, fn interface{}) *StorageClassDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*StorageClassDie) DieWith added in v0.9.0

func (d *StorageClassDie) DieWith(fns ...func(d *StorageClassDie)) *StorageClassDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*StorageClassDie) GetObjectKind

func (d *StorageClassDie) GetObjectKind() schema.ObjectKind

func (*StorageClassDie) Kind added in v0.5.0

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*StorageClassDie) MarshalJSON

func (d *StorageClassDie) MarshalJSON() ([]byte, error)

func (*StorageClassDie) MetadataDie

func (d *StorageClassDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *StorageClassDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*StorageClassDie) MountOptions

func (d *StorageClassDie) MountOptions(v ...string) *StorageClassDie

mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class.

e.g. ["ro", "soft"]. Not validated -

mount of the PVs will simply fail if one is invalid.

func (*StorageClassDie) Parameters

func (d *StorageClassDie) Parameters(v map[string]string) *StorageClassDie

parameters holds the parameters for the provisioner that should

create volumes of this storage class.

func (*StorageClassDie) Provisioner

func (d *StorageClassDie) Provisioner(v string) *StorageClassDie

provisioner indicates the type of the provisioner.

func (*StorageClassDie) ReclaimPolicy

reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class.

Defaults to Delete.

func (*StorageClassDie) UnmarshalJSON

func (d *StorageClassDie) UnmarshalJSON(b []byte) error

func (*StorageClassDie) VolumeBindingMode

func (d *StorageClassDie) VolumeBindingMode(v *storagev1.VolumeBindingMode) *StorageClassDie

volumeBindingMode indicates how PersistentVolumeClaims should be

provisioned and bound. When unset, VolumeBindingImmediate is used.

This field is only honored by servers that enable the VolumeScheduling feature.

type TokenRequestDie

type TokenRequestDie struct {
	// contains filtered or unexported fields
}

func (*TokenRequestDie) Audience

func (d *TokenRequestDie) Audience(v string) *TokenRequestDie

audience is the intended audience of the token in "TokenRequestSpec".

It will default to the audiences of kube apiserver.

func (*TokenRequestDie) DeepCopy

func (d *TokenRequestDie) DeepCopy() *TokenRequestDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TokenRequestDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*TokenRequestDie) DieFeedJSON added in v0.8.0

func (d *TokenRequestDie) DieFeedJSON(j []byte) *TokenRequestDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TokenRequestDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TokenRequestDie) DieFeedRawExtension added in v0.5.0

func (d *TokenRequestDie) DieFeedRawExtension(raw runtime.RawExtension) *TokenRequestDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TokenRequestDie) DieFeedYAML added in v0.8.0

func (d *TokenRequestDie) DieFeedYAML(y []byte) *TokenRequestDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TokenRequestDie) DieFeedYAMLFile added in v0.8.0

func (d *TokenRequestDie) DieFeedYAMLFile(name string) *TokenRequestDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TokenRequestDie) DieImmutable

func (d *TokenRequestDie) DieImmutable(immutable bool) *TokenRequestDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TokenRequestDie) DieRelease

func (d *TokenRequestDie) DieRelease() storagev1.TokenRequest

DieRelease returns the resource managed by the die.

func (*TokenRequestDie) DieReleaseJSON added in v0.8.0

func (d *TokenRequestDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TokenRequestDie) DieReleasePtr

func (d *TokenRequestDie) DieReleasePtr() *storagev1.TokenRequest

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TokenRequestDie) DieReleaseRawExtension added in v0.5.0

func (d *TokenRequestDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TokenRequestDie) DieReleaseYAML added in v0.8.0

func (d *TokenRequestDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TokenRequestDie) DieStamp

func (d *TokenRequestDie) DieStamp(fn func(r *storagev1.TokenRequest)) *TokenRequestDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TokenRequestDie) DieStampAt added in v0.8.0

func (d *TokenRequestDie) DieStampAt(jp string, fn interface{}) *TokenRequestDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*TokenRequestDie) DieWith added in v0.9.0

func (d *TokenRequestDie) DieWith(fns ...func(d *TokenRequestDie)) *TokenRequestDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TokenRequestDie) ExpirationSeconds

func (d *TokenRequestDie) ExpirationSeconds(v *int64) *TokenRequestDie

expirationSeconds is the duration of validity of the token in "TokenRequestSpec".

It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".

type VolumeAttachmentDie

type VolumeAttachmentDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*VolumeAttachmentDie) APIVersion added in v0.5.0

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*VolumeAttachmentDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*VolumeAttachmentDie) DeepCopyObject

func (d *VolumeAttachmentDie) DeepCopyObject() runtime.Object

func (*VolumeAttachmentDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*VolumeAttachmentDie) DieFeedJSON added in v0.8.0

func (d *VolumeAttachmentDie) DieFeedJSON(j []byte) *VolumeAttachmentDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*VolumeAttachmentDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*VolumeAttachmentDie) DieFeedRawExtension added in v0.5.0

func (d *VolumeAttachmentDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeAttachmentDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeAttachmentDie) DieFeedYAML added in v0.8.0

func (d *VolumeAttachmentDie) DieFeedYAML(y []byte) *VolumeAttachmentDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*VolumeAttachmentDie) DieFeedYAMLFile added in v0.8.0

func (d *VolumeAttachmentDie) DieFeedYAMLFile(name string) *VolumeAttachmentDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*VolumeAttachmentDie) DieImmutable

func (d *VolumeAttachmentDie) DieImmutable(immutable bool) *VolumeAttachmentDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*VolumeAttachmentDie) DieRelease

DieRelease returns the resource managed by the die.

func (*VolumeAttachmentDie) DieReleaseJSON added in v0.8.0

func (d *VolumeAttachmentDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*VolumeAttachmentDie) DieReleasePtr

func (d *VolumeAttachmentDie) DieReleasePtr() *storagev1.VolumeAttachment

DieReleasePtr returns a pointer to the resource managed by the die.

func (*VolumeAttachmentDie) DieReleaseRawExtension added in v0.5.0

func (d *VolumeAttachmentDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeAttachmentDie) DieReleaseUnstructured

func (d *VolumeAttachmentDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*VolumeAttachmentDie) DieReleaseYAML added in v0.8.0

func (d *VolumeAttachmentDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*VolumeAttachmentDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*VolumeAttachmentDie) DieStampAt added in v0.8.0

func (d *VolumeAttachmentDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*VolumeAttachmentDie) DieWith added in v0.9.0

func (d *VolumeAttachmentDie) DieWith(fns ...func(d *VolumeAttachmentDie)) *VolumeAttachmentDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*VolumeAttachmentDie) GetObjectKind

func (d *VolumeAttachmentDie) GetObjectKind() schema.ObjectKind

func (*VolumeAttachmentDie) Kind added in v0.5.0

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*VolumeAttachmentDie) MarshalJSON

func (d *VolumeAttachmentDie) MarshalJSON() ([]byte, error)

func (*VolumeAttachmentDie) MetadataDie

func (d *VolumeAttachmentDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *VolumeAttachmentDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*VolumeAttachmentDie) Spec

spec represents specification of the desired attach/detach volume behavior.

Populated by the Kubernetes system.

func (*VolumeAttachmentDie) SpecDie

SpecDie stamps the resource's spec field with a mutable die.

func (*VolumeAttachmentDie) Status

status represents status of the VolumeAttachment request.

Populated by the entity completing the attach or detach

operation, i.e. the external-attacher.

func (*VolumeAttachmentDie) StatusDie

StatusDie stamps the resource's status field with a mutable die.

func (*VolumeAttachmentDie) UnmarshalJSON

func (d *VolumeAttachmentDie) UnmarshalJSON(b []byte) error

type VolumeAttachmentSourceDie

type VolumeAttachmentSourceDie struct {
	// contains filtered or unexported fields
}

func (*VolumeAttachmentSourceDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*VolumeAttachmentSourceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*VolumeAttachmentSourceDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*VolumeAttachmentSourceDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*VolumeAttachmentSourceDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeAttachmentSourceDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*VolumeAttachmentSourceDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*VolumeAttachmentSourceDie) DieImmutable

func (d *VolumeAttachmentSourceDie) DieImmutable(immutable bool) *VolumeAttachmentSourceDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*VolumeAttachmentSourceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*VolumeAttachmentSourceDie) DieReleaseJSON added in v0.8.0

func (d *VolumeAttachmentSourceDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*VolumeAttachmentSourceDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*VolumeAttachmentSourceDie) DieReleaseRawExtension added in v0.5.0

func (d *VolumeAttachmentSourceDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeAttachmentSourceDie) DieReleaseYAML added in v0.8.0

func (d *VolumeAttachmentSourceDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*VolumeAttachmentSourceDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*VolumeAttachmentSourceDie) DieStampAt added in v0.8.0

func (d *VolumeAttachmentSourceDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentSourceDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*VolumeAttachmentSourceDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*VolumeAttachmentSourceDie) InlineVolumeSpec

inlineVolumeSpec contains all the information necessary to attach

a persistent volume defined by a pod's inline VolumeSource. This field

is populated only for the CSIMigration feature. It contains

translated fields from a pod's inline VolumeSource to a

PersistentVolumeSpec. This field is beta-level and is only

honored by servers that enabled the CSIMigration feature.

func (*VolumeAttachmentSourceDie) PersistentVolumeName

func (d *VolumeAttachmentSourceDie) PersistentVolumeName(v *string) *VolumeAttachmentSourceDie

persistentVolumeName represents the name of the persistent volume to attach.

func (*VolumeAttachmentSourceDie) SourceDie

type VolumeAttachmentSpecDie

type VolumeAttachmentSpecDie struct {
	// contains filtered or unexported fields
}

func (*VolumeAttachmentSpecDie) Attacher

attacher indicates the name of the volume driver that MUST handle this

request. This is the name returned by GetPluginName().

func (*VolumeAttachmentSpecDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*VolumeAttachmentSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*VolumeAttachmentSpecDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*VolumeAttachmentSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*VolumeAttachmentSpecDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeAttachmentSpecDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*VolumeAttachmentSpecDie) DieFeedYAMLFile added in v0.8.0

func (d *VolumeAttachmentSpecDie) DieFeedYAMLFile(name string) *VolumeAttachmentSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*VolumeAttachmentSpecDie) DieImmutable

func (d *VolumeAttachmentSpecDie) DieImmutable(immutable bool) *VolumeAttachmentSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*VolumeAttachmentSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*VolumeAttachmentSpecDie) DieReleaseJSON added in v0.8.0

func (d *VolumeAttachmentSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*VolumeAttachmentSpecDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*VolumeAttachmentSpecDie) DieReleaseRawExtension added in v0.5.0

func (d *VolumeAttachmentSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeAttachmentSpecDie) DieReleaseYAML added in v0.8.0

func (d *VolumeAttachmentSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*VolumeAttachmentSpecDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*VolumeAttachmentSpecDie) DieStampAt added in v0.8.0

func (d *VolumeAttachmentSpecDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*VolumeAttachmentSpecDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*VolumeAttachmentSpecDie) NodeName

nodeName represents the node that the volume should be attached to.

func (*VolumeAttachmentSpecDie) Source

source represents the volume that should be attached.

func (*VolumeAttachmentSpecDie) SourceDie

type VolumeAttachmentStatusDie

type VolumeAttachmentStatusDie struct {
	// contains filtered or unexported fields
}

func (*VolumeAttachmentStatusDie) AttachError

attachError represents the last error encountered during attach operation, if any.

This field must only be set by the entity completing the attach

operation, i.e. the external-attacher.

func (*VolumeAttachmentStatusDie) AttachErrorDie

func (d *VolumeAttachmentStatusDie) AttachErrorDie(fn func(d *VolumeErrorDie)) *VolumeAttachmentStatusDie

func (*VolumeAttachmentStatusDie) Attached

attached indicates the volume is successfully attached.

This field must only be set by the entity completing the attach

operation, i.e. the external-attacher.

func (*VolumeAttachmentStatusDie) AttachmentMetadata

func (d *VolumeAttachmentStatusDie) AttachmentMetadata(v map[string]string) *VolumeAttachmentStatusDie

attachmentMetadata is populated with any

information returned by the attach operation, upon successful attach, that must be passed

into subsequent WaitForAttach or Mount calls.

This field must only be set by the entity completing the attach

operation, i.e. the external-attacher.

func (*VolumeAttachmentStatusDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*VolumeAttachmentStatusDie) DetachError

detachError represents the last error encountered during detach operation, if any.

This field must only be set by the entity completing the detach

operation, i.e. the external-attacher.

func (*VolumeAttachmentStatusDie) DetachErrorDie

func (d *VolumeAttachmentStatusDie) DetachErrorDie(fn func(d *VolumeErrorDie)) *VolumeAttachmentStatusDie

func (*VolumeAttachmentStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*VolumeAttachmentStatusDie) DieFeedJSON added in v0.8.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*VolumeAttachmentStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*VolumeAttachmentStatusDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeAttachmentStatusDie) DieFeedYAML added in v0.8.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*VolumeAttachmentStatusDie) DieFeedYAMLFile added in v0.8.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*VolumeAttachmentStatusDie) DieImmutable

func (d *VolumeAttachmentStatusDie) DieImmutable(immutable bool) *VolumeAttachmentStatusDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*VolumeAttachmentStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*VolumeAttachmentStatusDie) DieReleaseJSON added in v0.8.0

func (d *VolumeAttachmentStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*VolumeAttachmentStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*VolumeAttachmentStatusDie) DieReleaseRawExtension added in v0.5.0

func (d *VolumeAttachmentStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeAttachmentStatusDie) DieReleaseYAML added in v0.8.0

func (d *VolumeAttachmentStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*VolumeAttachmentStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*VolumeAttachmentStatusDie) DieStampAt added in v0.8.0

func (d *VolumeAttachmentStatusDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentStatusDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*VolumeAttachmentStatusDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

type VolumeErrorDie

type VolumeErrorDie struct {
	// contains filtered or unexported fields
}

func (*VolumeErrorDie) DeepCopy

func (d *VolumeErrorDie) DeepCopy() *VolumeErrorDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*VolumeErrorDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*VolumeErrorDie) DieFeedJSON added in v0.8.0

func (d *VolumeErrorDie) DieFeedJSON(j []byte) *VolumeErrorDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*VolumeErrorDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*VolumeErrorDie) DieFeedRawExtension added in v0.5.0

func (d *VolumeErrorDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeErrorDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeErrorDie) DieFeedYAML added in v0.8.0

func (d *VolumeErrorDie) DieFeedYAML(y []byte) *VolumeErrorDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*VolumeErrorDie) DieFeedYAMLFile added in v0.8.0

func (d *VolumeErrorDie) DieFeedYAMLFile(name string) *VolumeErrorDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*VolumeErrorDie) DieImmutable

func (d *VolumeErrorDie) DieImmutable(immutable bool) *VolumeErrorDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*VolumeErrorDie) DieRelease

func (d *VolumeErrorDie) DieRelease() storagev1.VolumeError

DieRelease returns the resource managed by the die.

func (*VolumeErrorDie) DieReleaseJSON added in v0.8.0

func (d *VolumeErrorDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*VolumeErrorDie) DieReleasePtr

func (d *VolumeErrorDie) DieReleasePtr() *storagev1.VolumeError

DieReleasePtr returns a pointer to the resource managed by the die.

func (*VolumeErrorDie) DieReleaseRawExtension added in v0.5.0

func (d *VolumeErrorDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeErrorDie) DieReleaseYAML added in v0.8.0

func (d *VolumeErrorDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*VolumeErrorDie) DieStamp

func (d *VolumeErrorDie) DieStamp(fn func(r *storagev1.VolumeError)) *VolumeErrorDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*VolumeErrorDie) DieStampAt added in v0.8.0

func (d *VolumeErrorDie) DieStampAt(jp string, fn interface{}) *VolumeErrorDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*VolumeErrorDie) DieWith added in v0.9.0

func (d *VolumeErrorDie) DieWith(fns ...func(d *VolumeErrorDie)) *VolumeErrorDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*VolumeErrorDie) Message

func (d *VolumeErrorDie) Message(v string) *VolumeErrorDie

message represents the error encountered during Attach or Detach operation.

This string may be logged, so it should not contain sensitive

information.

func (*VolumeErrorDie) Time

time represents the time the error was encountered.

type VolumeNodeResourcesDie

type VolumeNodeResourcesDie struct {
	// contains filtered or unexported fields
}

func (*VolumeNodeResourcesDie) Count

count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node.

A volume that is both attached and mounted on a node is considered to be used once, not twice.

The same rule applies for a unique volume that is shared among multiple pods on the same node.

If this field is not specified, then the supported number of volumes on this node is unbounded.

func (*VolumeNodeResourcesDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*VolumeNodeResourcesDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*VolumeNodeResourcesDie) DieFeedJSON added in v0.8.0

func (d *VolumeNodeResourcesDie) DieFeedJSON(j []byte) *VolumeNodeResourcesDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*VolumeNodeResourcesDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*VolumeNodeResourcesDie) DieFeedRawExtension added in v0.5.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeNodeResourcesDie) DieFeedYAML added in v0.8.0

func (d *VolumeNodeResourcesDie) DieFeedYAML(y []byte) *VolumeNodeResourcesDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*VolumeNodeResourcesDie) DieFeedYAMLFile added in v0.8.0

func (d *VolumeNodeResourcesDie) DieFeedYAMLFile(name string) *VolumeNodeResourcesDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*VolumeNodeResourcesDie) DieImmutable

func (d *VolumeNodeResourcesDie) DieImmutable(immutable bool) *VolumeNodeResourcesDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*VolumeNodeResourcesDie) DieRelease

DieRelease returns the resource managed by the die.

func (*VolumeNodeResourcesDie) DieReleaseJSON added in v0.8.0

func (d *VolumeNodeResourcesDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*VolumeNodeResourcesDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*VolumeNodeResourcesDie) DieReleaseRawExtension added in v0.5.0

func (d *VolumeNodeResourcesDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*VolumeNodeResourcesDie) DieReleaseYAML added in v0.8.0

func (d *VolumeNodeResourcesDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*VolumeNodeResourcesDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*VolumeNodeResourcesDie) DieStampAt added in v0.8.0

func (d *VolumeNodeResourcesDie) DieStampAt(jp string, fn interface{}) *VolumeNodeResourcesDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*VolumeNodeResourcesDie) DieWith added in v0.9.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

Jump to

Keyboard shortcuts

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