Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apis: remove omitempty tag of Device's field health #1601

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apis/scheduling/v1alpha1/device_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type DeviceInfo struct {
// ModuleID represents the physical id of Device
ModuleID *int32 `json:"moduleID,omitempty"`
// Health indicates whether the device is normal
Health bool `json:"health,omitempty"`
Health bool `json:"health"`
// Resources is a set of (resource name, quantity) pairs
Resources corev1.ResourceList `json:"resources,omitempty"`
// Topology represents the topology information about the device
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/scheduling.koordinator.sh_devices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ spec:
type: array
type: object
type: array
required:
- health
type: object
type: array
type: object
Expand Down
12 changes: 12 additions & 0 deletions config/crd/bases/slo.koordinator.sh_nodemetrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ spec:
type: array
type: object
type: array
required:
- health
type: object
type: array
resources:
Expand Down Expand Up @@ -275,6 +277,8 @@ spec:
type: array
type: object
type: array
required:
- health
type: object
type: array
resources:
Expand Down Expand Up @@ -377,6 +381,8 @@ spec:
type: array
type: object
type: array
required:
- health
type: object
type: array
resources:
Expand Down Expand Up @@ -477,6 +483,8 @@ spec:
type: array
type: object
type: array
required:
- health
type: object
type: array
resources:
Expand Down Expand Up @@ -589,6 +597,8 @@ spec:
type: array
type: object
type: array
required:
- health
type: object
type: array
resources:
Expand Down Expand Up @@ -694,6 +704,8 @@ spec:
type: array
type: object
type: array
required:
- health
type: object
type: array
resources:
Expand Down