OS
Schema Hub

VolumeAttachmentSpec

VolumeAttachmentSpec is the specification of a VolumeAttachment request.

Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/storage.api.k8s.io/VolumeAttachmentSpec_v1.json
Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/storage.api.k8s.io/VolumeAttachmentSpec_v1.json
kubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yaml

Resource Structure

attacherstringRequired
attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().
nodeNamestringRequired
nodeName represents the node that the volume should be attached to.
sourceobjectRequired
source represents the volume that should be attached.