Skip to content

Commit 8d5d78d

Browse files
committed
Add workaround for fixing stale quota when feature gate is disabled
1 parent c797607 commit 8d5d78d

File tree

1 file changed

+2
-1
lines changed
  • keps/sig-storage/1790-recover-resize-failure

1 file changed

+2
-1
lines changed

keps/sig-storage/1790-recover-resize-failure/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ If CSI driver does not have `GET_VOLUME` controller capability(or `ControllerGet
200200
the enablement)?**
201201
Yes the feature gate can be disabled once enabled. However quota resources present in the cluster will be based off a field(`pvc.Status.AllocatedResources`) which is no longer updated.
202202
Currently without this feature - quota calculation is entirely based on `pvc.Spec.Resources` and when feature is enabled it will based off `max(pvc.Spec.Resources, pvc.Status.AllocatedResources)`
203-
so when the feature is disabled, cluster might be reporting stale quota.
203+
so when the feature is disabled, cluster might be reporting stale quota. To fix this issue - cluster admins can re-create `ResourceQuota` objects so as quota controller can recompute the
204+
quota using `pvc.Spec.Resources`.
204205

205206
* **What happens if we reenable the feature if it was previously rolled back?**
206207
It should be possible to re-enable the feature after disabling it. When feature is disabled and re-enabled, users will be able to

0 commit comments

Comments
 (0)