From f6fa395da79fd8be08bf7f4d7be5248db7c6cd3a Mon Sep 17 00:00:00 2001 From: Imtiaz Uddin Date: Wed, 4 Oct 2023 14:42:38 +0600 Subject: [PATCH] Add status in project quota api type Signed-off-by: Imtiaz Uddin --- apis/management/v1alpha1/projectquota_types.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apis/management/v1alpha1/projectquota_types.go b/apis/management/v1alpha1/projectquota_types.go index 97aa5cb7a..5efb6837f 100644 --- a/apis/management/v1alpha1/projectquota_types.go +++ b/apis/management/v1alpha1/projectquota_types.go @@ -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"` +} + // +kubebuilder:validation:Enum=Success;Error type QuotaResult string