Skip to content

Commit ab44f58

Browse files
Merge pull request #40 from kubeslice/feat-gpu-license
feat(): added gpu restriction field in cluster status (#39)
2 parents 6a5dec2 + 20b378a commit ab44f58

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/controller/v1alpha1/cluster_types.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@ type ClusterStatus struct {
136136

137137
// VCPURestriction is the restriction on the cluster disabling the creation of new pods
138138
VCPURestriction *VCPURestriction `json:"vCPURestriction,omitempty"`
139+
GPURestriction *GPURestriction `json:"GPURestriction,omitempty"`
140+
}
141+
142+
type GPURestriction struct {
143+
// EnforceRestrictions is the flag to check if the cluster is restricted
144+
EnforceRestrictions bool `json:"enforceRestrictions,omitempty"`
145+
// LastUpdatedTimestamp is the timestamp when the enforcement was updated
146+
LastUpdatedTimestamp metav1.Time `json:"lastUpdatedTimestamp,omitempty"`
139147
}
140148

141149
type VCPURestriction struct {

0 commit comments

Comments
 (0)