mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Remove conditions from PVC after successful resize
This commit is contained in:
parent
51033c4dec
commit
c0353ca20c
@ -1272,6 +1272,7 @@ func updatePVCStatusCapacity(pvcName string, pvc *v1.PersistentVolumeClaim, capa
|
|||||||
}
|
}
|
||||||
|
|
||||||
pvcCopy.Status.Capacity = capacity
|
pvcCopy.Status.Capacity = capacity
|
||||||
|
pvcCopy.Status.Conditions = []v1.PersistentVolumeClaimCondition{}
|
||||||
newData, err := json.Marshal(pvcCopy)
|
newData, err := json.Marshal(pvcCopy)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user