Skip to content

Commit

Permalink
Use AvailableFlavor object instead of []ResourceFlavorReference.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbobrovskyi committed Oct 7, 2024
1 parent 9a21200 commit 6ca0be3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions keps/3122-expose-flavors-in-localqueue-status/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ ClusterQueue objects directly, only LocalQueues.

## Design Details

Create `AvailableFlavor` API object:

```
type AvailableFlavor struct {
// name of the flavor.
Name ResourceFlavorReference `json:"name"`
}
```

Modify `LocalQueueStatus` API object:

```
Expand All @@ -72,9 +81,9 @@ type LocalQueueStatus struct {
// availableFlavors lists all currently available ResourceFlavors
// in specified ClusterQueue.
//
// +listType=set
// +optional
AvailableFlavors []ResourceFlavorReference `json:"availableFlavors,omitempty"`
// +listType=map
// +listMapKey=name
AvailableFlavors []AvailableFlavor `json:"availableFlavors,omitempty"`
}
```

Expand Down

0 comments on commit 6ca0be3

Please sign in to comment.