Skip to content

Commit

Permalink
Add status in project quota api type
Browse files Browse the repository at this point in the history
Signed-off-by: Imtiaz Uddin <[email protected]>
  • Loading branch information
Imtiaz246 committed Oct 4, 2023
1 parent 6d9f8c1 commit 44119d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apis/management/v1alpha1/projectquota_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,18 @@ type ProjectQuotaStatus struct {

type ResourceQuotaStatus struct {
ResourceQuotaSpec `json:",inline"`
Result QuotaResult `json:"result"`
Status QuotaStatus `json:"quotaStatus"`

// Used is the current observed total usage of the resource in the namespace.
// +optional
Used core.ResourceList `json:"used,omitempty"`
}

type QuotaStatus struct {
Result QuotaResult `json:"result"`
Reason string `json:"reason,omitempty"`
}

// +kubebuilder:validation:Enum=Success;Error
type QuotaResult string

Expand Down

0 comments on commit 44119d9

Please sign in to comment.