csi: correct struct fields in CSI{Persistent}VolumeSource.

The field names in godoc for CSIPersistentVolumeSource and
CSIVolumeSource has been corrected with this commit.

Additional Ref# https://github.com/kubernetes/kubernetes/pull/105963#discussion_r751340196

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2022-01-06 17:15:06 +05:30
parent c6f2102218
commit e01753a938
9 changed files with 94 additions and 96 deletions

View File

@ -4962,41 +4962,41 @@
"properties": { "properties": {
"controllerExpandSecretRef": { "controllerExpandSecretRef": {
"$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference",
"description": "ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"controllerPublishSecretRef": { "controllerPublishSecretRef": {
"$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference",
"description": "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"driver": { "driver": {
"description": "Driver is the name of the driver to use for this volume. Required.", "description": "driver is the name of the driver to use for this volume. Required.",
"type": "string" "type": "string"
}, },
"fsType": { "fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".",
"type": "string" "type": "string"
}, },
"nodePublishSecretRef": { "nodePublishSecretRef": {
"$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference",
"description": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"nodeStageSecretRef": { "nodeStageSecretRef": {
"$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference",
"description": "NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"readOnly": { "readOnly": {
"description": "Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).",
"type": "boolean" "type": "boolean"
}, },
"volumeAttributes": { "volumeAttributes": {
"additionalProperties": { "additionalProperties": {
"type": "string" "type": "string"
}, },
"description": "Attributes of the volume to publish.", "description": "volumeAttributes of the volume to publish.",
"type": "object" "type": "object"
}, },
"volumeHandle": { "volumeHandle": {
"description": "VolumeHandle is the unique volume name returned by the CSI volume plugins CreateVolume to refer to the volume on all subsequent calls. Required.", "description": "volumeHandle is the unique volume name returned by the CSI volume plugins CreateVolume to refer to the volume on all subsequent calls. Required.",
"type": "string" "type": "string"
} }
}, },
@ -5010,26 +5010,26 @@
"description": "Represents a source location of a volume to mount, managed by an external CSI driver", "description": "Represents a source location of a volume to mount, managed by an external CSI driver",
"properties": { "properties": {
"driver": { "driver": {
"description": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.",
"type": "string" "type": "string"
}, },
"fsType": { "fsType": {
"description": "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.",
"type": "string" "type": "string"
}, },
"nodePublishSecretRef": { "nodePublishSecretRef": {
"$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference",
"description": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed."
}, },
"readOnly": { "readOnly": {
"description": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).",
"type": "boolean" "type": "boolean"
}, },
"volumeAttributes": { "volumeAttributes": {
"additionalProperties": { "additionalProperties": {
"type": "string" "type": "string"
}, },
"description": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.",
"type": "object" "type": "object"
} }
}, },

View File

@ -366,31 +366,31 @@
"properties": { "properties": {
"controllerExpandSecretRef": { "controllerExpandSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference",
"description": "ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"controllerPublishSecretRef": { "controllerPublishSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference",
"description": "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"driver": { "driver": {
"default": "", "default": "",
"description": "Driver is the name of the driver to use for this volume. Required.", "description": "driver is the name of the driver to use for this volume. Required.",
"type": "string" "type": "string"
}, },
"fsType": { "fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".",
"type": "string" "type": "string"
}, },
"nodePublishSecretRef": { "nodePublishSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference",
"description": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"nodeStageSecretRef": { "nodeStageSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference",
"description": "NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"readOnly": { "readOnly": {
"description": "Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).",
"type": "boolean" "type": "boolean"
}, },
"volumeAttributes": { "volumeAttributes": {
@ -398,12 +398,12 @@
"default": "", "default": "",
"type": "string" "type": "string"
}, },
"description": "Attributes of the volume to publish.", "description": "volumeAttributes of the volume to publish.",
"type": "object" "type": "object"
}, },
"volumeHandle": { "volumeHandle": {
"default": "", "default": "",
"description": "VolumeHandle is the unique volume name returned by the CSI volume plugins CreateVolume to refer to the volume on all subsequent calls. Required.", "description": "volumeHandle is the unique volume name returned by the CSI volume plugins CreateVolume to refer to the volume on all subsequent calls. Required.",
"type": "string" "type": "string"
} }
}, },
@ -418,19 +418,19 @@
"properties": { "properties": {
"driver": { "driver": {
"default": "", "default": "",
"description": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.",
"type": "string" "type": "string"
}, },
"fsType": { "fsType": {
"description": "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.",
"type": "string" "type": "string"
}, },
"nodePublishSecretRef": { "nodePublishSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.LocalObjectReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.LocalObjectReference",
"description": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed."
}, },
"readOnly": { "readOnly": {
"description": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).",
"type": "boolean" "type": "boolean"
}, },
"volumeAttributes": { "volumeAttributes": {
@ -438,7 +438,7 @@
"default": "", "default": "",
"type": "string" "type": "string"
}, },
"description": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.",
"type": "object" "type": "object"
} }
}, },

View File

@ -1198,19 +1198,19 @@
"properties": { "properties": {
"driver": { "driver": {
"default": "", "default": "",
"description": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.",
"type": "string" "type": "string"
}, },
"fsType": { "fsType": {
"description": "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.",
"type": "string" "type": "string"
}, },
"nodePublishSecretRef": { "nodePublishSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.LocalObjectReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.LocalObjectReference",
"description": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed."
}, },
"readOnly": { "readOnly": {
"description": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).",
"type": "boolean" "type": "boolean"
}, },
"volumeAttributes": { "volumeAttributes": {
@ -1218,7 +1218,7 @@
"default": "", "default": "",
"type": "string" "type": "string"
}, },
"description": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.",
"type": "object" "type": "object"
} }
}, },

View File

@ -519,19 +519,19 @@
"properties": { "properties": {
"driver": { "driver": {
"default": "", "default": "",
"description": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.",
"type": "string" "type": "string"
}, },
"fsType": { "fsType": {
"description": "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.",
"type": "string" "type": "string"
}, },
"nodePublishSecretRef": { "nodePublishSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.LocalObjectReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.LocalObjectReference",
"description": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed."
}, },
"readOnly": { "readOnly": {
"description": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).",
"type": "boolean" "type": "boolean"
}, },
"volumeAttributes": { "volumeAttributes": {
@ -539,7 +539,7 @@
"default": "", "default": "",
"type": "string" "type": "string"
}, },
"description": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.",
"type": "object" "type": "object"
} }
}, },

View File

@ -321,19 +321,19 @@
"properties": { "properties": {
"driver": { "driver": {
"default": "", "default": "",
"description": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.",
"type": "string" "type": "string"
}, },
"fsType": { "fsType": {
"description": "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.",
"type": "string" "type": "string"
}, },
"nodePublishSecretRef": { "nodePublishSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.LocalObjectReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.LocalObjectReference",
"description": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed."
}, },
"readOnly": { "readOnly": {
"description": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).",
"type": "boolean" "type": "boolean"
}, },
"volumeAttributes": { "volumeAttributes": {
@ -341,7 +341,7 @@
"default": "", "default": "",
"type": "string" "type": "string"
}, },
"description": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.",
"type": "object" "type": "object"
} }
}, },

View File

@ -97,31 +97,31 @@
"properties": { "properties": {
"controllerExpandSecretRef": { "controllerExpandSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference",
"description": "ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"controllerPublishSecretRef": { "controllerPublishSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference",
"description": "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"driver": { "driver": {
"default": "", "default": "",
"description": "Driver is the name of the driver to use for this volume. Required.", "description": "driver is the name of the driver to use for this volume. Required.",
"type": "string" "type": "string"
}, },
"fsType": { "fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".",
"type": "string" "type": "string"
}, },
"nodePublishSecretRef": { "nodePublishSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference",
"description": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"nodeStageSecretRef": { "nodeStageSecretRef": {
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference", "$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference",
"description": "NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
}, },
"readOnly": { "readOnly": {
"description": "Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).",
"type": "boolean" "type": "boolean"
}, },
"volumeAttributes": { "volumeAttributes": {
@ -129,12 +129,12 @@
"default": "", "default": "",
"type": "string" "type": "string"
}, },
"description": "Attributes of the volume to publish.", "description": "volumeAttributes of the volume to publish.",
"type": "object" "type": "object"
}, },
"volumeHandle": { "volumeHandle": {
"default": "", "default": "",
"description": "VolumeHandle is the unique volume name returned by the CSI volume plugins CreateVolume to refer to the volume on all subsequent calls. Required.", "description": "volumeHandle is the unique volume name returned by the CSI volume plugins CreateVolume to refer to the volume on all subsequent calls. Required.",
"type": "string" "type": "string"
} }
}, },

View File

@ -171,31 +171,30 @@ message Binding {
// Represents storage that is managed by an external CSI volume driver (Beta feature) // Represents storage that is managed by an external CSI volume driver (Beta feature)
message CSIPersistentVolumeSource { message CSIPersistentVolumeSource {
// Driver is the name of the driver to use for this volume. // driver is the name of the driver to use for this volume.
// Required. // Required.
optional string driver = 1; optional string driver = 1;
// VolumeHandle is the unique volume name returned by the CSI volume // volumeHandle is the unique volume name returned by the CSI volume
// plugins CreateVolume to refer to the volume on all subsequent calls. // plugins CreateVolume to refer to the volume on all subsequent calls.
// Required. // Required.
optional string volumeHandle = 2; optional string volumeHandle = 2;
// Optional: The value to pass to ControllerPublishVolumeRequest. // readOnly value to pass to ControllerPublishVolumeRequest.
// Defaults to false (read/write). // Defaults to false (read/write).
// +optional // +optional
optional bool readOnly = 3; optional bool readOnly = 3;
// Filesystem type to mount. // fsType to mount. Must be a filesystem type supported by the host operating system.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". // Ex. "ext4", "xfs", "ntfs".
// +optional // +optional
optional string fsType = 4; optional string fsType = 4;
// Attributes of the volume to publish. // volumeAttributes of the volume to publish.
// +optional // +optional
map<string, string> volumeAttributes = 5; map<string, string> volumeAttributes = 5;
// ControllerPublishSecretRef is a reference to the secret object containing // controllerPublishSecretRef is a reference to the secret object containing
// sensitive information to pass to the CSI driver to complete the CSI // sensitive information to pass to the CSI driver to complete the CSI
// ControllerPublishVolume and ControllerUnpublishVolume calls. // ControllerPublishVolume and ControllerUnpublishVolume calls.
// This field is optional, and may be empty if no secret is required. If the // This field is optional, and may be empty if no secret is required. If the
@ -203,7 +202,7 @@ message CSIPersistentVolumeSource {
// +optional // +optional
optional SecretReference controllerPublishSecretRef = 6; optional SecretReference controllerPublishSecretRef = 6;
// NodeStageSecretRef is a reference to the secret object containing sensitive // nodeStageSecretRef is a reference to the secret object containing sensitive
// information to pass to the CSI driver to complete the CSI NodeStageVolume // information to pass to the CSI driver to complete the CSI NodeStageVolume
// and NodeStageVolume and NodeUnstageVolume calls. // and NodeStageVolume and NodeUnstageVolume calls.
// This field is optional, and may be empty if no secret is required. If the // This field is optional, and may be empty if no secret is required. If the
@ -211,7 +210,7 @@ message CSIPersistentVolumeSource {
// +optional // +optional
optional SecretReference nodeStageSecretRef = 7; optional SecretReference nodeStageSecretRef = 7;
// NodePublishSecretRef is a reference to the secret object containing // nodePublishSecretRef is a reference to the secret object containing
// sensitive information to pass to the CSI driver to complete the CSI // sensitive information to pass to the CSI driver to complete the CSI
// NodePublishVolume and NodeUnpublishVolume calls. // NodePublishVolume and NodeUnpublishVolume calls.
// This field is optional, and may be empty if no secret is required. If the // This field is optional, and may be empty if no secret is required. If the
@ -219,7 +218,7 @@ message CSIPersistentVolumeSource {
// +optional // +optional
optional SecretReference nodePublishSecretRef = 8; optional SecretReference nodePublishSecretRef = 8;
// ControllerExpandSecretRef is a reference to the secret object containing // controllerExpandSecretRef is a reference to the secret object containing
// sensitive information to pass to the CSI driver to complete the CSI // sensitive information to pass to the CSI driver to complete the CSI
// ControllerExpandVolume call. // ControllerExpandVolume call.
// This is an alpha field and requires enabling ExpandCSIVolumes feature gate. // This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
@ -231,27 +230,27 @@ message CSIPersistentVolumeSource {
// Represents a source location of a volume to mount, managed by an external CSI driver // Represents a source location of a volume to mount, managed by an external CSI driver
message CSIVolumeSource { message CSIVolumeSource {
// Driver is the name of the CSI driver that handles this volume. // driver is the name of the CSI driver that handles this volume.
// Consult with your admin for the correct name as registered in the cluster. // Consult with your admin for the correct name as registered in the cluster.
optional string driver = 1; optional string driver = 1;
// Specifies a read-only configuration for the volume. // readOnly specifies a read-only configuration for the volume.
// Defaults to false (read/write). // Defaults to false (read/write).
// +optional // +optional
optional bool readOnly = 2; optional bool readOnly = 2;
// Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". // fsType to mount. Ex. "ext4", "xfs", "ntfs".
// If not provided, the empty value is passed to the associated CSI driver // If not provided, the empty value is passed to the associated CSI driver
// which will determine the default filesystem to apply. // which will determine the default filesystem to apply.
// +optional // +optional
optional string fsType = 3; optional string fsType = 3;
// VolumeAttributes stores driver-specific properties that are passed to the CSI // volumeAttributes stores driver-specific properties that are passed to the CSI
// driver. Consult your driver's documentation for supported values. // driver. Consult your driver's documentation for supported values.
// +optional // +optional
map<string, string> volumeAttributes = 4; map<string, string> volumeAttributes = 4;
// NodePublishSecretRef is a reference to the secret object containing // nodePublishSecretRef is a reference to the secret object containing
// sensitive information to pass to the CSI driver to complete the CSI // sensitive information to pass to the CSI driver to complete the CSI
// NodePublishVolume and NodeUnpublishVolume calls. // NodePublishVolume and NodeUnpublishVolume calls.
// This field is optional, and may be empty if no secret is required. If the // This field is optional, and may be empty if no secret is required. If the

View File

@ -1753,31 +1753,30 @@ type LocalVolumeSource struct {
// Represents storage that is managed by an external CSI volume driver (Beta feature) // Represents storage that is managed by an external CSI volume driver (Beta feature)
type CSIPersistentVolumeSource struct { type CSIPersistentVolumeSource struct {
// Driver is the name of the driver to use for this volume. // driver is the name of the driver to use for this volume.
// Required. // Required.
Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"` Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"`
// VolumeHandle is the unique volume name returned by the CSI volume // volumeHandle is the unique volume name returned by the CSI volume
// plugins CreateVolume to refer to the volume on all subsequent calls. // plugins CreateVolume to refer to the volume on all subsequent calls.
// Required. // Required.
VolumeHandle string `json:"volumeHandle" protobuf:"bytes,2,opt,name=volumeHandle"` VolumeHandle string `json:"volumeHandle" protobuf:"bytes,2,opt,name=volumeHandle"`
// Optional: The value to pass to ControllerPublishVolumeRequest. // readOnly value to pass to ControllerPublishVolumeRequest.
// Defaults to false (read/write). // Defaults to false (read/write).
// +optional // +optional
ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"`
// Filesystem type to mount. // fsType to mount. Must be a filesystem type supported by the host operating system.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". // Ex. "ext4", "xfs", "ntfs".
// +optional // +optional
FSType string `json:"fsType,omitempty" protobuf:"bytes,4,opt,name=fsType"` FSType string `json:"fsType,omitempty" protobuf:"bytes,4,opt,name=fsType"`
// Attributes of the volume to publish. // volumeAttributes of the volume to publish.
// +optional // +optional
VolumeAttributes map[string]string `json:"volumeAttributes,omitempty" protobuf:"bytes,5,rep,name=volumeAttributes"` VolumeAttributes map[string]string `json:"volumeAttributes,omitempty" protobuf:"bytes,5,rep,name=volumeAttributes"`
// ControllerPublishSecretRef is a reference to the secret object containing // controllerPublishSecretRef is a reference to the secret object containing
// sensitive information to pass to the CSI driver to complete the CSI // sensitive information to pass to the CSI driver to complete the CSI
// ControllerPublishVolume and ControllerUnpublishVolume calls. // ControllerPublishVolume and ControllerUnpublishVolume calls.
// This field is optional, and may be empty if no secret is required. If the // This field is optional, and may be empty if no secret is required. If the
@ -1785,7 +1784,7 @@ type CSIPersistentVolumeSource struct {
// +optional // +optional
ControllerPublishSecretRef *SecretReference `json:"controllerPublishSecretRef,omitempty" protobuf:"bytes,6,opt,name=controllerPublishSecretRef"` ControllerPublishSecretRef *SecretReference `json:"controllerPublishSecretRef,omitempty" protobuf:"bytes,6,opt,name=controllerPublishSecretRef"`
// NodeStageSecretRef is a reference to the secret object containing sensitive // nodeStageSecretRef is a reference to the secret object containing sensitive
// information to pass to the CSI driver to complete the CSI NodeStageVolume // information to pass to the CSI driver to complete the CSI NodeStageVolume
// and NodeStageVolume and NodeUnstageVolume calls. // and NodeStageVolume and NodeUnstageVolume calls.
// This field is optional, and may be empty if no secret is required. If the // This field is optional, and may be empty if no secret is required. If the
@ -1793,7 +1792,7 @@ type CSIPersistentVolumeSource struct {
// +optional // +optional
NodeStageSecretRef *SecretReference `json:"nodeStageSecretRef,omitempty" protobuf:"bytes,7,opt,name=nodeStageSecretRef"` NodeStageSecretRef *SecretReference `json:"nodeStageSecretRef,omitempty" protobuf:"bytes,7,opt,name=nodeStageSecretRef"`
// NodePublishSecretRef is a reference to the secret object containing // nodePublishSecretRef is a reference to the secret object containing
// sensitive information to pass to the CSI driver to complete the CSI // sensitive information to pass to the CSI driver to complete the CSI
// NodePublishVolume and NodeUnpublishVolume calls. // NodePublishVolume and NodeUnpublishVolume calls.
// This field is optional, and may be empty if no secret is required. If the // This field is optional, and may be empty if no secret is required. If the
@ -1801,7 +1800,7 @@ type CSIPersistentVolumeSource struct {
// +optional // +optional
NodePublishSecretRef *SecretReference `json:"nodePublishSecretRef,omitempty" protobuf:"bytes,8,opt,name=nodePublishSecretRef"` NodePublishSecretRef *SecretReference `json:"nodePublishSecretRef,omitempty" protobuf:"bytes,8,opt,name=nodePublishSecretRef"`
// ControllerExpandSecretRef is a reference to the secret object containing // controllerExpandSecretRef is a reference to the secret object containing
// sensitive information to pass to the CSI driver to complete the CSI // sensitive information to pass to the CSI driver to complete the CSI
// ControllerExpandVolume call. // ControllerExpandVolume call.
// This is an alpha field and requires enabling ExpandCSIVolumes feature gate. // This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
@ -1813,27 +1812,27 @@ type CSIPersistentVolumeSource struct {
// Represents a source location of a volume to mount, managed by an external CSI driver // Represents a source location of a volume to mount, managed by an external CSI driver
type CSIVolumeSource struct { type CSIVolumeSource struct {
// Driver is the name of the CSI driver that handles this volume. // driver is the name of the CSI driver that handles this volume.
// Consult with your admin for the correct name as registered in the cluster. // Consult with your admin for the correct name as registered in the cluster.
Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"` Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"`
// Specifies a read-only configuration for the volume. // readOnly specifies a read-only configuration for the volume.
// Defaults to false (read/write). // Defaults to false (read/write).
// +optional // +optional
ReadOnly *bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"` ReadOnly *bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"`
// Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". // fsType to mount. Ex. "ext4", "xfs", "ntfs".
// If not provided, the empty value is passed to the associated CSI driver // If not provided, the empty value is passed to the associated CSI driver
// which will determine the default filesystem to apply. // which will determine the default filesystem to apply.
// +optional // +optional
FSType *string `json:"fsType,omitempty" protobuf:"bytes,3,opt,name=fsType"` FSType *string `json:"fsType,omitempty" protobuf:"bytes,3,opt,name=fsType"`
// VolumeAttributes stores driver-specific properties that are passed to the CSI // volumeAttributes stores driver-specific properties that are passed to the CSI
// driver. Consult your driver's documentation for supported values. // driver. Consult your driver's documentation for supported values.
// +optional // +optional
VolumeAttributes map[string]string `json:"volumeAttributes,omitempty" protobuf:"bytes,4,rep,name=volumeAttributes"` VolumeAttributes map[string]string `json:"volumeAttributes,omitempty" protobuf:"bytes,4,rep,name=volumeAttributes"`
// NodePublishSecretRef is a reference to the secret object containing // nodePublishSecretRef is a reference to the secret object containing
// sensitive information to pass to the CSI driver to complete the CSI // sensitive information to pass to the CSI driver to complete the CSI
// NodePublishVolume and NodeUnpublishVolume calls. // NodePublishVolume and NodeUnpublishVolume calls.
// This field is optional, and may be empty if no secret is required. If the // This field is optional, and may be empty if no secret is required. If the

View File

@ -118,15 +118,15 @@ func (Binding) SwaggerDoc() map[string]string {
var map_CSIPersistentVolumeSource = map[string]string{ var map_CSIPersistentVolumeSource = map[string]string{
"": "Represents storage that is managed by an external CSI volume driver (Beta feature)", "": "Represents storage that is managed by an external CSI volume driver (Beta feature)",
"driver": "Driver is the name of the driver to use for this volume. Required.", "driver": "driver is the name of the driver to use for this volume. Required.",
"volumeHandle": "VolumeHandle is the unique volume name returned by the CSI volume plugins CreateVolume to refer to the volume on all subsequent calls. Required.", "volumeHandle": "volumeHandle is the unique volume name returned by the CSI volume plugins CreateVolume to refer to the volume on all subsequent calls. Required.",
"readOnly": "Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", "readOnly": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).",
"fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", "fsType": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".",
"volumeAttributes": "Attributes of the volume to publish.", "volumeAttributes": "volumeAttributes of the volume to publish.",
"controllerPublishSecretRef": "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", "controllerPublishSecretRef": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
"nodeStageSecretRef": "NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", "nodeStageSecretRef": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
"nodePublishSecretRef": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", "nodePublishSecretRef": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
"controllerExpandSecretRef": "ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", "controllerExpandSecretRef": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
} }
func (CSIPersistentVolumeSource) SwaggerDoc() map[string]string { func (CSIPersistentVolumeSource) SwaggerDoc() map[string]string {
@ -135,11 +135,11 @@ func (CSIPersistentVolumeSource) SwaggerDoc() map[string]string {
var map_CSIVolumeSource = map[string]string{ var map_CSIVolumeSource = map[string]string{
"": "Represents a source location of a volume to mount, managed by an external CSI driver", "": "Represents a source location of a volume to mount, managed by an external CSI driver",
"driver": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", "driver": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.",
"readOnly": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", "readOnly": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).",
"fsType": "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", "fsType": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.",
"volumeAttributes": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", "volumeAttributes": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.",
"nodePublishSecretRef": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.", "nodePublishSecretRef": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.",
} }
func (CSIVolumeSource) SwaggerDoc() map[string]string { func (CSIVolumeSource) SwaggerDoc() map[string]string {