VolumeAttachment
apiVersion: storage.k8s.io/v1
import "k8s.io/api/storage/v1"
VolumeAttachment
VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.
VolumeAttachment objects are non-namespaced.
-
apiVersion: storage.k8s.io/v1
-
kind: VolumeAttachment
-
spec (
Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.
VolumeAttachmentSpec
VolumeAttachmentSpec is the specification of a VolumeAttachment request.
-
attacher (string), required
Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().
-
nodeName (string), required
The node that the volume should be attached to.
-
source (VolumeAttachmentSource), required
Source represents the volume that should be attached.
VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.
-
source.persistentVolumeName (string)
Name of the persistent volume to attach.
VolumeAttachmentStatus
VolumeAttachmentStatus is the status of a VolumeAttachment request.
-
attached (boolean), required
Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
-
attachError (VolumeError)
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.
VolumeError captures an error encountered during a volume operation.
-
attachError.message (string)
String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.
-
attachError.time (Time)
Time the error was encountered.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
-
-
attachmentMetadata (map[string]string)
Upon successful attach, this field is populated with any information returned by the attach operation 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.
-
detachError (VolumeError)
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.
VolumeError captures an error encountered during a volume operation.
-
detachError.message (string)
String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.
-
detachError.time (Time)
Time the error was encountered.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
-
VolumeAttachmentList
VolumeAttachmentList is a collection of VolumeAttachment objects.
-
apiVersion: storage.k8s.io/v1
-
kind: VolumeAttachmentList
-
items ([]
Items is the list of VolumeAttachments
Operations
get
read the specified VolumeAttachment
HTTP Request
GET /apis/storage.k8s.io/v1/volumeattachments/{name}
Parameters
Response
200 (
401: Unauthorized GET /apis/storage.k8s.io/v1/volumeattachments/{name}/status 200 (
401: Unauthorized GET /apis/storage.k8s.io/v1/volumeattachments allowWatchBookmarks (in query): boolean continue (in query): string fieldSelector (in query): string labelSelector (in query): string limit (in query): integer pretty (in query): string resourceVersion (in query): string resourceVersionMatch (in query): string timeoutSeconds (in query): integer watch (in query): boolean 200 (
401: Unauthorized POST /apis/storage.k8s.io/v1/volumeattachments dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
202 (
401: Unauthorized PUT /apis/storage.k8s.io/v1/volumeattachments/{name} name (in path): string, required name of the VolumeAttachment dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
401: Unauthorized PUT /apis/storage.k8s.io/v1/volumeattachments/{name}/status name (in path): string, required name of the VolumeAttachment dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
401: Unauthorized PATCH /apis/storage.k8s.io/v1/volumeattachments/{name} name (in path): string, required name of the VolumeAttachment dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string force (in query): boolean pretty (in query): string 200 (
201 (
401: Unauthorized PATCH /apis/storage.k8s.io/v1/volumeattachments/{name}/status name (in path): string, required name of the VolumeAttachment dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string force (in query): boolean pretty (in query): string 200 (
201 (
401: Unauthorized DELETE /apis/storage.k8s.io/v1/volumeattachments/{name} name (in path): string, required name of the VolumeAttachment dryRun (in query): string gracePeriodSeconds (in query): integer pretty (in query): string propagationPolicy (in query): string 200 (
202 (
401: Unauthorized DELETE /apis/storage.k8s.io/v1/volumeattachments continue (in query): string dryRun (in query): string fieldSelector (in query): string gracePeriodSeconds (in query): integer labelSelector (in query): string limit (in query): integer pretty (in query): string propagationPolicy (in query): string resourceVersion (in query): string resourceVersionMatch (in query): string timeoutSeconds (in query): integer 200 (
401: Unauthorizedget
read status of the specified VolumeAttachmentHTTP Request
Parameters
Response
list
list or watch objects of kind VolumeAttachmentHTTP Request
Parameters
Response
create
create a VolumeAttachmentHTTP Request
Parameters
Response
update
replace the specified VolumeAttachmentHTTP Request
Parameters
Response
update
replace status of the specified VolumeAttachmentHTTP Request
Parameters
Response
patch
partially update the specified VolumeAttachmentHTTP Request
Parameters
Response
patch
partially update status of the specified VolumeAttachmentHTTP Request
Parameters
Response
delete
delete a VolumeAttachmentHTTP Request
Parameters
Response
deletecollection
delete collection of VolumeAttachmentHTTP Request
Parameters
Response