mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Add ClaimLost phase.
This commit is contained in:
parent
5949b956f5
commit
0be1512f1c
@ -339,7 +339,7 @@ func FuzzerFor(t *testing.T, version unversioned.GroupVersion, src rand.Source)
|
||||
},
|
||||
func(pvc *api.PersistentVolumeClaim, c fuzz.Continue) {
|
||||
c.FuzzNoCustom(pvc) // fuzz self without calling this function again
|
||||
types := []api.PersistentVolumeClaimPhase{api.ClaimBound, api.ClaimPending}
|
||||
types := []api.PersistentVolumeClaimPhase{api.ClaimBound, api.ClaimPending, api.ClaimLost}
|
||||
pvc.Status.Phase = types[c.Rand.Intn(len(types))]
|
||||
},
|
||||
func(s *api.NamespaceSpec, c fuzz.Continue) {
|
||||
|
@ -411,6 +411,10 @@ const (
|
||||
ClaimPending PersistentVolumeClaimPhase = "Pending"
|
||||
// used for PersistentVolumeClaims that are bound
|
||||
ClaimBound PersistentVolumeClaimPhase = "Bound"
|
||||
// used for PersistentVolumeClaims that lost their underlying
|
||||
// PersistentVolume. The claim was bound to a PersistentVolume and this
|
||||
// volume does not exist any longer and all data on it was lost.
|
||||
ClaimLost PersistentVolumeClaimPhase = "Lost"
|
||||
)
|
||||
|
||||
// Represents a host path mapped into a pod.
|
||||
|
@ -506,6 +506,10 @@ const (
|
||||
ClaimPending PersistentVolumeClaimPhase = "Pending"
|
||||
// used for PersistentVolumeClaims that are bound
|
||||
ClaimBound PersistentVolumeClaimPhase = "Bound"
|
||||
// used for PersistentVolumeClaims that lost their underlying
|
||||
// PersistentVolume. The claim was bound to a PersistentVolume and this
|
||||
// volume does not exist any longer and all data on it was lost.
|
||||
ClaimLost PersistentVolumeClaimPhase = "Lost"
|
||||
)
|
||||
|
||||
// Represents a host path mapped into a pod.
|
||||
|
Loading…
Reference in New Issue
Block a user