mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 02:38:12 +00:00
Merge pull request #121902 from carlory/kep-3751-pv-controller
[kep-3751] pvc bind pv with vac
This commit is contained in:
@@ -3007,6 +3007,20 @@ func TestValidatePersistentVolumeClaimUpdate(t *testing.T) {
|
||||
enableVolumeAttributesClass: true,
|
||||
isExpectedFailure: true,
|
||||
},
|
||||
"invalid-update-volume-attributes-class-when-claim-not-bound": {
|
||||
oldClaim: func() *core.PersistentVolumeClaim {
|
||||
clone := validClaimVolumeAttributesClass1.DeepCopy()
|
||||
clone.Status.Phase = core.ClaimPending
|
||||
return clone
|
||||
}(),
|
||||
newClaim: func() *core.PersistentVolumeClaim {
|
||||
clone := validClaimVolumeAttributesClass2.DeepCopy()
|
||||
clone.Status.Phase = core.ClaimPending
|
||||
return clone
|
||||
}(),
|
||||
enableVolumeAttributesClass: true,
|
||||
isExpectedFailure: true,
|
||||
},
|
||||
"invalid-update-volume-attributes-class-to-nil-without-featuregate-enabled": {
|
||||
oldClaim: validClaimVolumeAttributesClass1,
|
||||
newClaim: validClaimNilVolumeAttributesClass,
|
||||
|
||||
Reference in New Issue
Block a user