Skip to content

Commit d38e9a2

Browse files
Fix not using resourcename in cell struct
1 parent 8db82dd commit d38e9a2

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

api/v1/hypervisor_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ type Cell struct {
342342

343343
// Auto-discovered resource allocation of all hosted VMs in this cell.
344344
// +kubebuilder:validation:Optional
345-
Allocation map[string]resource.Quantity `json:"allocation"`
345+
Allocation map[ResourceName]resource.Quantity `json:"allocation"`
346346

347347
// Auto-discovered capacity of this cell.
348348
// +kubebuilder:validation:Optional
349-
Capacity map[string]resource.Quantity `json:"capacity"`
349+
Capacity map[ResourceName]resource.Quantity `json:"capacity"`
350350
}
351351

352352
// HypervisorStatus defines the observed state of Hypervisor

api/v1/zz_generated.deepcopy.go

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

applyconfigurations/api/v1/cell.go

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

0 commit comments

Comments
 (0)