Package k8s.io.api.core.v1
Class Generated.PersistentVolumeClaimStatus
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.PersistentVolumeClaimStatus
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.PersistentVolumeClaimStatusOrBuilder
- Enclosing class:
- Generated
public static final class Generated.PersistentVolumeClaimStatus extends com.google.protobuf.GeneratedMessageV3 implements Generated.PersistentVolumeClaimStatusOrBuilder
PersistentVolumeClaimStatus is the current status of a persistent volume claim.
Protobuf typek8s.io.api.core.v1.PersistentVolumeClaimStatus- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.PersistentVolumeClaimStatus.BuilderPersistentVolumeClaimStatus is the current status of a persistent volume claim.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACCESSMODES_FIELD_NUMBERstatic intALLOCATEDRESOURCES_FIELD_NUMBERstatic intALLOCATEDRESOURCESTATUSES_FIELD_NUMBERstatic intCAPACITY_FIELD_NUMBERstatic intCONDITIONS_FIELD_NUMBERstatic intCURRENTVOLUMEATTRIBUTESCLASSNAME_FIELD_NUMBERstatic intMODIFYVOLUMESTATUS_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.PersistentVolumeClaimStatus>PARSERDeprecated.static intPHASE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsAllocatedResources(String key)allocatedResources tracks the resources allocated to a PVC including its capacity.booleancontainsAllocatedResourceStatuses(String key)allocatedResourceStatuses stores status of resource being resized for the given PVC.booleancontainsCapacity(String key)capacity represents the actual resources of the underlying volume.booleanequals(Object obj)StringgetAccessModes(int index)accessModes contains the actual access modes the volume backing the PVC has.com.google.protobuf.ByteStringgetAccessModesBytes(int index)accessModes contains the actual access modes the volume backing the PVC has.intgetAccessModesCount()accessModes contains the actual access modes the volume backing the PVC has.com.google.protobuf.ProtocolStringListgetAccessModesList()accessModes contains the actual access modes the volume backing the PVC has.Map<String,Generated.Quantity>getAllocatedResources()Deprecated.intgetAllocatedResourcesCount()allocatedResources tracks the resources allocated to a PVC including its capacity.Map<String,Generated.Quantity>getAllocatedResourcesMap()allocatedResources tracks the resources allocated to a PVC including its capacity.Generated.QuantitygetAllocatedResourcesOrDefault(String key, Generated.Quantity defaultValue)allocatedResources tracks the resources allocated to a PVC including its capacity.Generated.QuantitygetAllocatedResourcesOrThrow(String key)allocatedResources tracks the resources allocated to a PVC including its capacity.Map<String,String>getAllocatedResourceStatuses()Deprecated.intgetAllocatedResourceStatusesCount()allocatedResourceStatuses stores status of resource being resized for the given PVC.Map<String,String>getAllocatedResourceStatusesMap()allocatedResourceStatuses stores status of resource being resized for the given PVC.StringgetAllocatedResourceStatusesOrDefault(String key, String defaultValue)allocatedResourceStatuses stores status of resource being resized for the given PVC.StringgetAllocatedResourceStatusesOrThrow(String key)allocatedResourceStatuses stores status of resource being resized for the given PVC.Map<String,Generated.Quantity>getCapacity()Deprecated.intgetCapacityCount()capacity represents the actual resources of the underlying volume.Map<String,Generated.Quantity>getCapacityMap()capacity represents the actual resources of the underlying volume.Generated.QuantitygetCapacityOrDefault(String key, Generated.Quantity defaultValue)capacity represents the actual resources of the underlying volume.Generated.QuantitygetCapacityOrThrow(String key)capacity represents the actual resources of the underlying volume.Generated.PersistentVolumeClaimConditiongetConditions(int index)conditions is the current Condition of persistent volume claim.intgetConditionsCount()conditions is the current Condition of persistent volume claim.List<Generated.PersistentVolumeClaimCondition>getConditionsList()conditions is the current Condition of persistent volume claim.Generated.PersistentVolumeClaimConditionOrBuildergetConditionsOrBuilder(int index)conditions is the current Condition of persistent volume claim.List<? extends Generated.PersistentVolumeClaimConditionOrBuilder>getConditionsOrBuilderList()conditions is the current Condition of persistent volume claim.StringgetCurrentVolumeAttributesClassName()currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.com.google.protobuf.ByteStringgetCurrentVolumeAttributesClassNameBytes()currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.static Generated.PersistentVolumeClaimStatusgetDefaultInstance()Generated.PersistentVolumeClaimStatusgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Generated.ModifyVolumeStatusgetModifyVolumeStatus()ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.Generated.ModifyVolumeStatusOrBuildergetModifyVolumeStatusOrBuilder()ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.com.google.protobuf.Parser<Generated.PersistentVolumeClaimStatus>getParserForType()StringgetPhase()phase represents the current phase of PersistentVolumeClaim.com.google.protobuf.ByteStringgetPhaseBytes()phase represents the current phase of PersistentVolumeClaim.intgetSerializedSize()booleanhasCurrentVolumeAttributesClassName()currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.inthashCode()booleanhasModifyVolumeStatus()ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.booleanhasPhase()phase represents the current phase of PersistentVolumeClaim.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Generated.PersistentVolumeClaimStatus.BuildernewBuilder()static Generated.PersistentVolumeClaimStatus.BuildernewBuilder(Generated.PersistentVolumeClaimStatus prototype)Generated.PersistentVolumeClaimStatus.BuildernewBuilderForType()protected Generated.PersistentVolumeClaimStatus.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.PersistentVolumeClaimStatusparseDelimitedFrom(InputStream input)static Generated.PersistentVolumeClaimStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PersistentVolumeClaimStatusparseFrom(byte[] data)static Generated.PersistentVolumeClaimStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PersistentVolumeClaimStatusparseFrom(com.google.protobuf.ByteString data)static Generated.PersistentVolumeClaimStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PersistentVolumeClaimStatusparseFrom(com.google.protobuf.CodedInputStream input)static Generated.PersistentVolumeClaimStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PersistentVolumeClaimStatusparseFrom(InputStream input)static Generated.PersistentVolumeClaimStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PersistentVolumeClaimStatusparseFrom(ByteBuffer data)static Generated.PersistentVolumeClaimStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.PersistentVolumeClaimStatus>parser()Generated.PersistentVolumeClaimStatus.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PHASE_FIELD_NUMBER
public static final int PHASE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCESSMODES_FIELD_NUMBER
public static final int ACCESSMODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CAPACITY_FIELD_NUMBER
public static final int CAPACITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONDITIONS_FIELD_NUMBER
public static final int CONDITIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALLOCATEDRESOURCES_FIELD_NUMBER
public static final int ALLOCATEDRESOURCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALLOCATEDRESOURCESTATUSES_FIELD_NUMBER
public static final int ALLOCATEDRESOURCESTATUSES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CURRENTVOLUMEATTRIBUTESCLASSNAME_FIELD_NUMBER
public static final int CURRENTVOLUMEATTRIBUTESCLASSNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MODIFYVOLUMESTATUS_FIELD_NUMBER
public static final int MODIFYVOLUMESTATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.PersistentVolumeClaimStatus> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasPhase
public boolean hasPhase()
phase represents the current phase of PersistentVolumeClaim. +optional
optional string phase = 1;- Specified by:
hasPhasein interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Returns:
- Whether the phase field is set.
-
getPhase
public String getPhase()
phase represents the current phase of PersistentVolumeClaim. +optional
optional string phase = 1;- Specified by:
getPhasein interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Returns:
- The phase.
-
getPhaseBytes
public com.google.protobuf.ByteString getPhaseBytes()
phase represents the current phase of PersistentVolumeClaim. +optional
optional string phase = 1;- Specified by:
getPhaseBytesin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Returns:
- The bytes for phase.
-
getAccessModesList
public com.google.protobuf.ProtocolStringList getAccessModesList()
accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional +listType=atomic
repeated string accessModes = 2;- Specified by:
getAccessModesListin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Returns:
- A list containing the accessModes.
-
getAccessModesCount
public int getAccessModesCount()
accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional +listType=atomic
repeated string accessModes = 2;- Specified by:
getAccessModesCountin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Returns:
- The count of accessModes.
-
getAccessModes
public String getAccessModes(int index)
accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional +listType=atomic
repeated string accessModes = 2;- Specified by:
getAccessModesin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The accessModes at the given index.
-
getAccessModesBytes
public com.google.protobuf.ByteString getAccessModesBytes(int index)
accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional +listType=atomic
repeated string accessModes = 2;- Specified by:
getAccessModesBytesin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the accessModes at the given index.
-
getCapacityCount
public int getCapacityCount()
Description copied from interface:Generated.PersistentVolumeClaimStatusOrBuildercapacity represents the actual resources of the underlying volume. +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;- Specified by:
getCapacityCountin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
containsCapacity
public boolean containsCapacity(String key)
capacity represents the actual resources of the underlying volume. +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;- Specified by:
containsCapacityin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getCapacity
@Deprecated public Map<String,Generated.Quantity> getCapacity()
Deprecated.UsegetCapacityMap()instead.- Specified by:
getCapacityin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getCapacityMap
public Map<String,Generated.Quantity> getCapacityMap()
capacity represents the actual resources of the underlying volume. +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;- Specified by:
getCapacityMapin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getCapacityOrDefault
public Generated.Quantity getCapacityOrDefault(String key, Generated.Quantity defaultValue)
capacity represents the actual resources of the underlying volume. +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;- Specified by:
getCapacityOrDefaultin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getCapacityOrThrow
public Generated.Quantity getCapacityOrThrow(String key)
capacity represents the actual resources of the underlying volume. +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;- Specified by:
getCapacityOrThrowin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getConditionsList
public List<Generated.PersistentVolumeClaimCondition> getConditionsList()
conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. +optional +patchMergeKey=type +patchStrategy=merge +listType=map +listMapKey=type
repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;- Specified by:
getConditionsListin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getConditionsOrBuilderList
public List<? extends Generated.PersistentVolumeClaimConditionOrBuilder> getConditionsOrBuilderList()
conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. +optional +patchMergeKey=type +patchStrategy=merge +listType=map +listMapKey=type
repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;- Specified by:
getConditionsOrBuilderListin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getConditionsCount
public int getConditionsCount()
conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. +optional +patchMergeKey=type +patchStrategy=merge +listType=map +listMapKey=type
repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;- Specified by:
getConditionsCountin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getConditions
public Generated.PersistentVolumeClaimCondition getConditions(int index)
conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. +optional +patchMergeKey=type +patchStrategy=merge +listType=map +listMapKey=type
repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;- Specified by:
getConditionsin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getConditionsOrBuilder
public Generated.PersistentVolumeClaimConditionOrBuilder getConditionsOrBuilder(int index)
conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. +optional +patchMergeKey=type +patchStrategy=merge +listType=map +listMapKey=type
repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;- Specified by:
getConditionsOrBuilderin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getAllocatedResourcesCount
public int getAllocatedResourcesCount()
Description copied from interface:Generated.PersistentVolumeClaimStatusOrBuilderallocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. +featureGate=RecoverVolumeExpansionFailure +optionalmap<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 5;- Specified by:
getAllocatedResourcesCountin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
containsAllocatedResources
public boolean containsAllocatedResources(String key)
allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. +featureGate=RecoverVolumeExpansionFailure +optionalmap<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 5;- Specified by:
containsAllocatedResourcesin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getAllocatedResources
@Deprecated public Map<String,Generated.Quantity> getAllocatedResources()
Deprecated.UsegetAllocatedResourcesMap()instead.- Specified by:
getAllocatedResourcesin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getAllocatedResourcesMap
public Map<String,Generated.Quantity> getAllocatedResourcesMap()
allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. +featureGate=RecoverVolumeExpansionFailure +optionalmap<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 5;- Specified by:
getAllocatedResourcesMapin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getAllocatedResourcesOrDefault
public Generated.Quantity getAllocatedResourcesOrDefault(String key, Generated.Quantity defaultValue)
allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. +featureGate=RecoverVolumeExpansionFailure +optionalmap<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 5;- Specified by:
getAllocatedResourcesOrDefaultin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getAllocatedResourcesOrThrow
public Generated.Quantity getAllocatedResourcesOrThrow(String key)
allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. +featureGate=RecoverVolumeExpansionFailure +optionalmap<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 5;- Specified by:
getAllocatedResourcesOrThrowin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getAllocatedResourceStatusesCount
public int getAllocatedResourceStatusesCount()
Description copied from interface:Generated.PersistentVolumeClaimStatusOrBuilderallocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. +featureGate=RecoverVolumeExpansionFailure +mapType=granular +optionalmap<string, string> allocatedResourceStatuses = 7;- Specified by:
getAllocatedResourceStatusesCountin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
containsAllocatedResourceStatuses
public boolean containsAllocatedResourceStatuses(String key)
allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. +featureGate=RecoverVolumeExpansionFailure +mapType=granular +optionalmap<string, string> allocatedResourceStatuses = 7;- Specified by:
containsAllocatedResourceStatusesin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getAllocatedResourceStatuses
@Deprecated public Map<String,String> getAllocatedResourceStatuses()
Deprecated.UsegetAllocatedResourceStatusesMap()instead.- Specified by:
getAllocatedResourceStatusesin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getAllocatedResourceStatusesMap
public Map<String,String> getAllocatedResourceStatusesMap()
allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. +featureGate=RecoverVolumeExpansionFailure +mapType=granular +optionalmap<string, string> allocatedResourceStatuses = 7;- Specified by:
getAllocatedResourceStatusesMapin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getAllocatedResourceStatusesOrDefault
public String getAllocatedResourceStatusesOrDefault(String key, String defaultValue)
allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. +featureGate=RecoverVolumeExpansionFailure +mapType=granular +optionalmap<string, string> allocatedResourceStatuses = 7;- Specified by:
getAllocatedResourceStatusesOrDefaultin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
getAllocatedResourceStatusesOrThrow
public String getAllocatedResourceStatusesOrThrow(String key)
allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress" - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. +featureGate=RecoverVolumeExpansionFailure +mapType=granular +optionalmap<string, string> allocatedResourceStatuses = 7;- Specified by:
getAllocatedResourceStatusesOrThrowin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
hasCurrentVolumeAttributesClassName
public boolean hasCurrentVolumeAttributesClassName()
currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default). +featureGate=VolumeAttributesClass +optional
optional string currentVolumeAttributesClassName = 8;- Specified by:
hasCurrentVolumeAttributesClassNamein interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Returns:
- Whether the currentVolumeAttributesClassName field is set.
-
getCurrentVolumeAttributesClassName
public String getCurrentVolumeAttributesClassName()
currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default). +featureGate=VolumeAttributesClass +optional
optional string currentVolumeAttributesClassName = 8;- Specified by:
getCurrentVolumeAttributesClassNamein interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Returns:
- The currentVolumeAttributesClassName.
-
getCurrentVolumeAttributesClassNameBytes
public com.google.protobuf.ByteString getCurrentVolumeAttributesClassNameBytes()
currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default). +featureGate=VolumeAttributesClass +optional
optional string currentVolumeAttributesClassName = 8;- Specified by:
getCurrentVolumeAttributesClassNameBytesin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Returns:
- The bytes for currentVolumeAttributesClassName.
-
hasModifyVolumeStatus
public boolean hasModifyVolumeStatus()
ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default). +featureGate=VolumeAttributesClass +optional
optional .k8s.io.api.core.v1.ModifyVolumeStatus modifyVolumeStatus = 9;- Specified by:
hasModifyVolumeStatusin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Returns:
- Whether the modifyVolumeStatus field is set.
-
getModifyVolumeStatus
public Generated.ModifyVolumeStatus getModifyVolumeStatus()
ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default). +featureGate=VolumeAttributesClass +optional
optional .k8s.io.api.core.v1.ModifyVolumeStatus modifyVolumeStatus = 9;- Specified by:
getModifyVolumeStatusin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder- Returns:
- The modifyVolumeStatus.
-
getModifyVolumeStatusOrBuilder
public Generated.ModifyVolumeStatusOrBuilder getModifyVolumeStatusOrBuilder()
ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default). +featureGate=VolumeAttributesClass +optional
optional .k8s.io.api.core.v1.ModifyVolumeStatus modifyVolumeStatus = 9;- Specified by:
getModifyVolumeStatusOrBuilderin interfaceGenerated.PersistentVolumeClaimStatusOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Generated.PersistentVolumeClaimStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PersistentVolumeClaimStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PersistentVolumeClaimStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PersistentVolumeClaimStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PersistentVolumeClaimStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PersistentVolumeClaimStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PersistentVolumeClaimStatus parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PersistentVolumeClaimStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.PersistentVolumeClaimStatus parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.PersistentVolumeClaimStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PersistentVolumeClaimStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PersistentVolumeClaimStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.PersistentVolumeClaimStatus.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.PersistentVolumeClaimStatus.Builder newBuilder()
-
newBuilder
public static Generated.PersistentVolumeClaimStatus.Builder newBuilder(Generated.PersistentVolumeClaimStatus prototype)
-
toBuilder
public Generated.PersistentVolumeClaimStatus.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.PersistentVolumeClaimStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.PersistentVolumeClaimStatus getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.PersistentVolumeClaimStatus> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.PersistentVolumeClaimStatus> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.PersistentVolumeClaimStatus getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-