public static final class V1beta1Storage.CSIDriverSpec extends com.google.protobuf.GeneratedMessageV3 implements V1beta1Storage.CSIDriverSpecOrBuilder
CSIDriverSpec is the specification of a CSIDriver.Protobuf type
k8s.io.api.storage.v1beta1.CSIDriverSpec| Modifier and Type | Class and Description |
|---|---|
static class |
V1beta1Storage.CSIDriverSpec.Builder
CSIDriverSpec is the specification of a CSIDriver.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ATTACHREQUIRED_FIELD_NUMBER |
static int |
FSGROUPPOLICY_FIELD_NUMBER |
static com.google.protobuf.Parser<V1beta1Storage.CSIDriverSpec> |
PARSER
Deprecated.
|
static int |
PODINFOONMOUNT_FIELD_NUMBER |
static int |
REQUIRESREPUBLISH_FIELD_NUMBER |
static int |
STORAGECAPACITY_FIELD_NUMBER |
static int |
TOKENREQUESTS_FIELD_NUMBER |
static int |
VOLUMELIFECYCLEMODES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAttachRequired()
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.
|
static V1beta1Storage.CSIDriverSpec |
getDefaultInstance() |
V1beta1Storage.CSIDriverSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFsGroupPolicy()
Defines if the underlying volume supports changing ownership and
permission of the volume before being mounted.
|
com.google.protobuf.ByteString |
getFsGroupPolicyBytes()
Defines if the underlying volume supports changing ownership and
permission of the volume before being mounted.
|
com.google.protobuf.Parser<V1beta1Storage.CSIDriverSpec> |
getParserForType() |
boolean |
getPodInfoOnMount()
If set to true, podInfoOnMount indicates this CSI volume driver
requires additional pod information (like podName, podUID, etc.) during
mount operations.
|
boolean |
getRequiresRepublish()
RequiresRepublish indicates the CSI driver wants `NodePublishVolume`
being periodically called to reflect any possible change in the mounted
volume.
|
int |
getSerializedSize() |
boolean |
getStorageCapacity()
If set to true, 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.
|
V1beta1Storage.TokenRequest |
getTokenRequests(int index)
TokenRequests indicates the CSI driver needs pods' service account
tokens it is mounting volume for to do necessary authentication.
|
int |
getTokenRequestsCount()
TokenRequests indicates the CSI driver needs pods' service account
tokens it is mounting volume for to do necessary authentication.
|
List<V1beta1Storage.TokenRequest> |
getTokenRequestsList()
TokenRequests indicates the CSI driver needs pods' service account
tokens it is mounting volume for to do necessary authentication.
|
V1beta1Storage.TokenRequestOrBuilder |
getTokenRequestsOrBuilder(int index)
TokenRequests indicates the CSI driver needs pods' service account
tokens it is mounting volume for to do necessary authentication.
|
List<? extends V1beta1Storage.TokenRequestOrBuilder> |
getTokenRequestsOrBuilderList()
TokenRequests indicates the CSI driver needs pods' service account
tokens it is mounting volume for to do necessary authentication.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getVolumeLifecycleModes(int index)
VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
|
com.google.protobuf.ByteString |
getVolumeLifecycleModesBytes(int index)
VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
|
int |
getVolumeLifecycleModesCount()
VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
|
com.google.protobuf.ProtocolStringList |
getVolumeLifecycleModesList()
VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
|
boolean |
hasAttachRequired()
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.
|
boolean |
hasFsGroupPolicy()
Defines if the underlying volume supports changing ownership and
permission of the volume before being mounted.
|
int |
hashCode() |
boolean |
hasPodInfoOnMount()
If set to true, podInfoOnMount indicates this CSI volume driver
requires additional pod information (like podName, podUID, etc.) during
mount operations.
|
boolean |
hasRequiresRepublish()
RequiresRepublish indicates the CSI driver wants `NodePublishVolume`
being periodically called to reflect any possible change in the mounted
volume.
|
boolean |
hasStorageCapacity()
If set to true, 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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static V1beta1Storage.CSIDriverSpec.Builder |
newBuilder() |
static V1beta1Storage.CSIDriverSpec.Builder |
newBuilder(V1beta1Storage.CSIDriverSpec prototype) |
V1beta1Storage.CSIDriverSpec.Builder |
newBuilderForType() |
protected V1beta1Storage.CSIDriverSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V1beta1Storage.CSIDriverSpec |
parseDelimitedFrom(InputStream input) |
static V1beta1Storage.CSIDriverSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1beta1Storage.CSIDriverSpec |
parseFrom(byte[] data) |
static V1beta1Storage.CSIDriverSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1beta1Storage.CSIDriverSpec |
parseFrom(ByteBuffer data) |
static V1beta1Storage.CSIDriverSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1beta1Storage.CSIDriverSpec |
parseFrom(com.google.protobuf.ByteString data) |
static V1beta1Storage.CSIDriverSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1beta1Storage.CSIDriverSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V1beta1Storage.CSIDriverSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1beta1Storage.CSIDriverSpec |
parseFrom(InputStream input) |
static V1beta1Storage.CSIDriverSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V1beta1Storage.CSIDriverSpec> |
parser() |
V1beta1Storage.CSIDriverSpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ATTACHREQUIRED_FIELD_NUMBER
public static final int PODINFOONMOUNT_FIELD_NUMBER
public static final int VOLUMELIFECYCLEMODES_FIELD_NUMBER
public static final int STORAGECAPACITY_FIELD_NUMBER
public static final int FSGROUPPOLICY_FIELD_NUMBER
public static final int TOKENREQUESTS_FIELD_NUMBER
public static final int REQUIRESREPUBLISH_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V1beta1Storage.CSIDriverSpec> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasAttachRequired()
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. +optional
optional bool attachRequired = 1;hasAttachRequired in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic boolean getAttachRequired()
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. +optional
optional bool attachRequired = 1;getAttachRequired in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic boolean hasPodInfoOnMount()
If set to true, podInfoOnMount indicates this CSI volume driver
requires additional pod information (like podName, podUID, etc.) during
mount operations.
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 VolumeConext 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.
+optional
optional bool podInfoOnMount = 2;hasPodInfoOnMount in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic boolean getPodInfoOnMount()
If set to true, podInfoOnMount indicates this CSI volume driver
requires additional pod information (like podName, podUID, etc.) during
mount operations.
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 VolumeConext 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.
+optional
optional bool podInfoOnMount = 2;getPodInfoOnMount in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic com.google.protobuf.ProtocolStringList getVolumeLifecycleModesList()
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 immutable. +optional
repeated string volumeLifecycleModes = 3;getVolumeLifecycleModesList in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic int getVolumeLifecycleModesCount()
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 immutable. +optional
repeated string volumeLifecycleModes = 3;getVolumeLifecycleModesCount in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic String getVolumeLifecycleModes(int index)
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 immutable. +optional
repeated string volumeLifecycleModes = 3;getVolumeLifecycleModes in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic com.google.protobuf.ByteString getVolumeLifecycleModesBytes(int index)
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 immutable. +optional
repeated string volumeLifecycleModes = 3;getVolumeLifecycleModesBytes in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic boolean hasStorageCapacity()
If set to true, 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. 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. This is a beta field and only available when the CSIStorageCapacity feature is enabled. The default is false. +optional +featureGate=CSIStorageCapacity
optional bool storageCapacity = 4;hasStorageCapacity in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic boolean getStorageCapacity()
If set to true, 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. 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. This is a beta field and only available when the CSIStorageCapacity feature is enabled. The default is false. +optional +featureGate=CSIStorageCapacity
optional bool storageCapacity = 4;getStorageCapacity in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic boolean hasFsGroupPolicy()
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. +optional
optional string fsGroupPolicy = 5;hasFsGroupPolicy in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic String getFsGroupPolicy()
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. +optional
optional string fsGroupPolicy = 5;getFsGroupPolicy in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic com.google.protobuf.ByteString getFsGroupPolicyBytes()
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. +optional
optional string fsGroupPolicy = 5;getFsGroupPolicyBytes in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic List<V1beta1Storage.TokenRequest> getTokenRequestsList()
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.
+optional
+listType=atomic
repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6;getTokenRequestsList in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic List<? extends V1beta1Storage.TokenRequestOrBuilder> getTokenRequestsOrBuilderList()
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.
+optional
+listType=atomic
repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6;getTokenRequestsOrBuilderList in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic int getTokenRequestsCount()
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.
+optional
+listType=atomic
repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6;getTokenRequestsCount in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic V1beta1Storage.TokenRequest getTokenRequests(int index)
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.
+optional
+listType=atomic
repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6;getTokenRequests in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic V1beta1Storage.TokenRequestOrBuilder getTokenRequestsOrBuilder(int index)
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.
+optional
+listType=atomic
repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6;getTokenRequestsOrBuilder in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic boolean hasRequiresRepublish()
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. +optional
optional bool requiresRepublish = 7;hasRequiresRepublish in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic boolean getRequiresRepublish()
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. +optional
optional bool requiresRepublish = 7;getRequiresRepublish in interface V1beta1Storage.CSIDriverSpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static V1beta1Storage.CSIDriverSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1beta1Storage.CSIDriverSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1beta1Storage.CSIDriverSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1beta1Storage.CSIDriverSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1beta1Storage.CSIDriverSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1beta1Storage.CSIDriverSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1beta1Storage.CSIDriverSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static V1beta1Storage.CSIDriverSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1beta1Storage.CSIDriverSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static V1beta1Storage.CSIDriverSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1beta1Storage.CSIDriverSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static V1beta1Storage.CSIDriverSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic V1beta1Storage.CSIDriverSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static V1beta1Storage.CSIDriverSpec.Builder newBuilder()
public static V1beta1Storage.CSIDriverSpec.Builder newBuilder(V1beta1Storage.CSIDriverSpec prototype)
public V1beta1Storage.CSIDriverSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected V1beta1Storage.CSIDriverSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static V1beta1Storage.CSIDriverSpec getDefaultInstance()
public static com.google.protobuf.Parser<V1beta1Storage.CSIDriverSpec> parser()
public com.google.protobuf.Parser<V1beta1Storage.CSIDriverSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public V1beta1Storage.CSIDriverSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023. All rights reserved.