Skip to content

Commit

Permalink
Update project quota api
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Sep 25, 2023
1 parent eb6b14d commit c526b22
Show file tree
Hide file tree
Showing 10 changed files with 523 additions and 497 deletions.
95 changes: 1 addition & 94 deletions apis/core/v1alpha1/openapi_generated.go

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

21 changes: 1 addition & 20 deletions apis/core/v1alpha1/project_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
kmapi "kmodules.xyz/client-go/api/v1"
"kmodules.xyz/resource-metadata/apis/shared"

core "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand Down Expand Up @@ -57,23 +56,6 @@ const (
ProjectUser ProjectType = "User"
)

// ProjectStatus defines the observed state of Project
type ProjectStatus struct {
Quotas []ResourceQuota `json:"quotas"`
}

type ResourceQuota struct {
Group string `json:"group,omitempty"`
Kind string `json:"kind,omitempty"`
// Hard is the set of enforced hard limits for each named resource.
// More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
// +optional
Hard core.ResourceList `json:"hard,omitempty"`
// Used is the current observed total usage of the resource in the namespace.
// +optional
Used core.ResourceList `json:"used,omitempty"`
}

// +genclient
// +genclient:nonNamespaced
// +genclient:onlyVerbs=get,list
Expand All @@ -86,8 +68,7 @@ type Project struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec ProjectSpec `json:"spec,omitempty"`
Status ProjectStatus `json:"status,omitempty"`
Spec ProjectSpec `json:"spec,omitempty"`
}

//+kubebuilder:object:root=true
Expand Down
54 changes: 0 additions & 54 deletions apis/core/v1alpha1/zz_generated.deepcopy.go

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

Loading

0 comments on commit c526b22

Please sign in to comment.