Skip to content
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 status in project quota api type #370

Merged
merged 2 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apis/management/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions apis/management/v1alpha1/projectquota_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ type ProjectQuotaStatus struct {
type ResourceQuotaStatus struct {
ResourceQuotaSpec `json:",inline"`
Result QuotaResult `json:"result"`
// +optional
Reason string `json:"reason,omitempty"`

// Used is the current observed total usage of the resource in the namespace.
// +optional
Used core.ResourceList `json:"used,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions crds/management.k8s.appscode.com_projectquotas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ spec:
type: object
kind:
type: string
reason:
type: string
result:
enum:
- Success
Expand Down
Loading