Skip to content

Commit 31b4a94

Browse files
committed
Update based on review comments - using pointer
1 parent 0bb5063 commit 31b4a94

2 files changed

Lines changed: 24 additions & 8 deletions

File tree

api/fma/v1alpha1/launcherpoolpolicy_types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ type ResourceRequirements struct {
149149
type ResourceRanges struct {
150150
// CPU defines the CPU resource range requirement.
151151
// +optional
152-
CPU ResourceRange `json:"cpu,omitempty"`
152+
CPU *ResourceRange `json:"cpu,omitempty"`
153153

154154
// Memory defines the memory resource range requirement.
155155
// +optional
156-
Memory ResourceRange `json:"memory,omitempty"`
156+
Memory *ResourceRange `json:"memory,omitempty"`
157157

158158
// Accelerators defines the GPU resource range requirements keyed by GPU type.
159159
// +optional
@@ -164,11 +164,11 @@ type ResourceRanges struct {
164164
type ResourceRange struct {
165165
// Min specifies the minimum quantity required.
166166
// +optional
167-
Min resource.Quantity `json:"min,omitempty"`
167+
Min *resource.Quantity `json:"min,omitempty"`
168168

169169
// Max specifies the maximum quantity allowed.
170170
// +optional
171-
Max resource.Quantity `json:"max,omitempty"`
171+
Max *resource.Quantity `json:"max,omitempty"`
172172
}
173173

174174
// AcceleratorSelector defines accelerator selection criteria

api/fma/v1alpha1/zz_generated.deepcopy.go

Lines changed: 20 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)