Skip to content

Commit

Permalink
Set ResourceFlavorReference as required.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbobrovskyi committed Oct 17, 2024
1 parent c8193b9 commit bb5673e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apis/kueue/v1beta1/localqueue_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ type ClusterQueueReference string

type LocalQueueFlavorStatus struct {
// name of the flavor.
// +required
// +kubebuilder:validation:Required
Name ResourceFlavorReference `json:"name"`

// resources used in the flavor.
Expand Down
4 changes: 3 additions & 1 deletion keps/3122-expose-flavors-in-localqueue-status/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
## Summary

This KEP introduces a new status field in LocalQueue, allowing users to see
all currently available ResourceFlavors in the LocalQueue.
all currently available ResourceFlavors for the LocalQueue.

## Motivation

Expand Down Expand Up @@ -79,6 +79,8 @@ Create `LocalQueueFlavorStatus` API object:
```go
type LocalQueueFlavorStatus struct {
// name of the flavor.
// +required
// +kubebuilder:validation:Required
Name ResourceFlavorReference `json:"name"`

// resources used in the flavor.
Expand Down
2 changes: 1 addition & 1 deletion pkg/features/kube_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const (
// beta: v0.9
//
// Enable the Flavors status field in the LocalQueue, allowing users to view
// all currently available ResourceFlavors in the LocalQueue.
// all currently available ResourceFlavors for the LocalQueue.
ExposeFlavorsInLocalQueue featuregate.Feature = "ExposeFlavorsInLocalQueue"
)

Expand Down

0 comments on commit bb5673e

Please sign in to comment.