Skip to content

Commit

Permalink
Adding a default value for hardware metadata state
Browse files Browse the repository at this point in the history
Signed-off-by: Aravind Ramalingam <[email protected]>
  • Loading branch information
pokearu committed Jan 17, 2023
1 parent 07a611f commit 0955770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/hardware_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ type IP struct {
}

type HardwareMetadata struct {
// +kubebuilder:default:=provisioning
State string `json:"state,omitempty"`
BondingMode int64 `json:"bonding_mode,omitempty"`
Manufacturer *MetadataManufacturer `json:"manufacturer,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/tinkerbell.org_hardware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ spec:
type: string
type: object
state:
default: provisioning
type: string
type: object
resources:
Expand Down

0 comments on commit 0955770

Please sign in to comment.