-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Quota with Scope Design Details of VolumeAttributesClass #5028
base: master
Are you sure you want to change the base?
Add Quota with Scope Design Details of VolumeAttributesClass #5028
Conversation
sunnylovestiramisu
commented
Jan 8, 2025
•
edited
Loading
edited
- One-line PR description: Add Quota with Scope Design Details of VolumeAttributesClass
- Issue link:
- Other comments: discussed in the api-machinery meeting, the quota restriction should not block status update.
4653e95
to
a9d6991
Compare
a9d6991
to
434ca8b
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sunnylovestiramisu The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
apiVersion: v1
kind: ResourceQuota
metadata:
name: gold
spec:
hard:
count/persistentvolumeclaims: "1"
scopeSelector:
matchExpressions:
- operator: In
scopeName: VolumeAttributesClass
values:
- gold
---
apiVersion: v1
kind: ResourceQuota
metadata:
name: silver
spec:
hard:
count/persistentvolumeclaims: "1"
scopeSelector:
matchExpressions:
- operator: In
scopeName: VolumeAttributesClass
values:
- silver
---
apiVersion: v1
kind: ResourceQuota
metadata:
name: bronze
spec:
hard:
count/persistentvolumeclaims: "1"
scopeSelector:
matchExpressions:
- operator: In
scopeName: VolumeAttributesClass
values:
- bronze
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: myclaim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
volumeAttributesClassName: gold
status:
phase: Bound
currentVolumeAttributesClassName: silver
modifyVolumeStatus:
targetVolumeAttributesClassName: bronze
status: "InProgress"
|