mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Add ClassName attributes to PV and PVC
This commit is contained in:
		@@ -404,6 +404,10 @@ type PersistentVolumeSpec struct {
 | 
				
			|||||||
	// Optional: what happens to a persistent volume when released from its claim.
 | 
						// Optional: what happens to a persistent volume when released from its claim.
 | 
				
			||||||
	// +optional
 | 
						// +optional
 | 
				
			||||||
	PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy
 | 
						PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy
 | 
				
			||||||
 | 
						// Name of StorageClass to which this persistent volume belongs. Empty value
 | 
				
			||||||
 | 
						// means that this volume does not belong to any StorageClass.
 | 
				
			||||||
 | 
						// +optional
 | 
				
			||||||
 | 
						StorageClassName string
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes
 | 
					// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes
 | 
				
			||||||
@@ -481,6 +485,10 @@ type PersistentVolumeClaimSpec struct {
 | 
				
			|||||||
	// claim. When set to non-empty value Selector is not evaluated
 | 
						// claim. When set to non-empty value Selector is not evaluated
 | 
				
			||||||
	// +optional
 | 
						// +optional
 | 
				
			||||||
	VolumeName string
 | 
						VolumeName string
 | 
				
			||||||
 | 
						// Name of the StorageClass required by the claim.
 | 
				
			||||||
 | 
						// More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1
 | 
				
			||||||
 | 
						// +optional
 | 
				
			||||||
 | 
						StorageClassName *string
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type PersistentVolumeClaimStatus struct {
 | 
					type PersistentVolumeClaimStatus struct {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -466,6 +466,10 @@ type PersistentVolumeSpec struct {
 | 
				
			|||||||
	// More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy
 | 
						// More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy
 | 
				
			||||||
	// +optional
 | 
						// +optional
 | 
				
			||||||
	PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty" protobuf:"bytes,5,opt,name=persistentVolumeReclaimPolicy,casttype=PersistentVolumeReclaimPolicy"`
 | 
						PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty" protobuf:"bytes,5,opt,name=persistentVolumeReclaimPolicy,casttype=PersistentVolumeReclaimPolicy"`
 | 
				
			||||||
 | 
						// Name of StorageClass to which this persistent volume belongs. Empty value
 | 
				
			||||||
 | 
						// means that this volume does not belong to any StorageClass.
 | 
				
			||||||
 | 
						// +optional
 | 
				
			||||||
 | 
						StorageClassName string `json:"storageClassName,omitempty"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes.
 | 
					// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes.
 | 
				
			||||||
@@ -561,6 +565,10 @@ type PersistentVolumeClaimSpec struct {
 | 
				
			|||||||
	// VolumeName is the binding reference to the PersistentVolume backing this claim.
 | 
						// VolumeName is the binding reference to the PersistentVolume backing this claim.
 | 
				
			||||||
	// +optional
 | 
						// +optional
 | 
				
			||||||
	VolumeName string `json:"volumeName,omitempty" protobuf:"bytes,3,opt,name=volumeName"`
 | 
						VolumeName string `json:"volumeName,omitempty" protobuf:"bytes,3,opt,name=volumeName"`
 | 
				
			||||||
 | 
						// Name of the StorageClass required by the claim.
 | 
				
			||||||
 | 
						// More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1
 | 
				
			||||||
 | 
						// +optional
 | 
				
			||||||
 | 
						StorageClassName *string `json:"storageClassName,omitempty"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// PersistentVolumeClaimStatus is the current status of a persistent volume claim.
 | 
					// PersistentVolumeClaimStatus is the current status of a persistent volume claim.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user