Skip to content

Commit

Permalink
Merge pull request #1819 from dtantsur/profile-required
Browse files Browse the repository at this point in the history
🌱 Do not mark hardwareProfile as required in the status
  • Loading branch information
metal3-io-bot committed Aug 7, 2024
2 parents e548ec4 + 77603a6 commit ed1e309
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apis/metal3.io/v1alpha1/baremetalhost_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,8 @@ type BareMetalHostStatus struct {
LastUpdated *metav1.Time `json:"lastUpdated,omitempty"`

// The name of the profile matching the hardware details.
HardwareProfile string `json:"hardwareProfile"`
// Hardware profiles are deprecated and should not be relied on.
HardwareProfile string `json:"hardwareProfile,omitempty"`

// The hardware discovered to exist on the host.
HardwareDetails *HardwareDetails `json:"hardware,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion config/base/crds/bases/metal3.io_baremetalhosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ spec:
type: object
hardwareProfile:
description: The name of the profile matching the hardware details.
Hardware profiles are deprecated and should not be relied on.
type: string
lastUpdated:
description: LastUpdated identifies when this status was last observed.
Expand Down Expand Up @@ -1128,7 +1129,6 @@ spec:
required:
- errorCount
- errorMessage
- hardwareProfile
- operationalStatus
- poweredOn
- provisioning
Expand Down
2 changes: 1 addition & 1 deletion config/render/capm3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ spec:
type: object
hardwareProfile:
description: The name of the profile matching the hardware details.
Hardware profiles are deprecated and should not be relied on.
type: string
lastUpdated:
description: LastUpdated identifies when this status was last observed.
Expand Down Expand Up @@ -1128,7 +1129,6 @@ spec:
required:
- errorCount
- errorMessage
- hardwareProfile
- operationalStatus
- poweredOn
- provisioning
Expand Down

0 comments on commit ed1e309

Please sign in to comment.