Skip to content

Commit

Permalink
fix(): update cluster crd with vCPURestriction (#23)
Browse files Browse the repository at this point in the history
Signed-off-by: Priyank Upadhyay <priyank@aveshasystems.com>
Signed-off-by: Puran Adhikari <puran.adhikari@aveshasystems.com>
Co-authored-by: Puran Adhikari <puran.adhikari@aveshasystems.com>
  • Loading branch information
priyank-upadhyay and Puran Adhikari authored Jun 30, 2023
1 parent 0ff3cc4 commit 946eaa9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/controller/v1alpha1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,16 @@ type ClusterStatus struct {
RegistrationStatus RegistrationStatus `json:"registrationStatus,omitempty"`
// IsDeregisterInProgress is the flag to check if the cluster deregister is InProgress
IsDeregisterInProgress bool `json:"isDeregisterInProgress,omitempty"`

// VCPURestriction is the restriction on the cluster disabling the creation of new pods
VCPURestriction *VCPURestriction `json:"vCPURestriction,omitempty"`
}

type VCPURestriction struct {
// EnforceRestrictions is the flag to check if the cluster is restricted
EnforceRestrictions bool `json:"enforceRestrictions,omitempty"`
// LastUpdatedTimestamp is the timestamp when the enforcement was updated
LastUpdatedTimestamp metav1.Time `json:"lastUpdatedTimestamp,omitempty"`
}

type ClusterHealth struct {
Expand Down
21 changes: 21 additions & 0 deletions pkg/controller/v1alpha1/zz_generated.deepcopy.go

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

0 comments on commit 946eaa9

Please sign in to comment.