Skip to content

Commit

Permalink
Fix minor issues in the API help strings
Browse files Browse the repository at this point in the history
Follow-up to commit 9a30c0d.

Signed-off-by: Dmitry Tantsur <[email protected]>
  • Loading branch information
dtantsur committed Oct 23, 2024
1 parent 5df43b0 commit ec006da
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
26 changes: 13 additions & 13 deletions apis/metal3.io/v1alpha1/baremetalhost_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const (
StateInspecting ProvisioningState = "inspecting"

// StatePoweringOffBeforeDelete means we are in the process of
// powering off the node before it's deleted.
// powering off the host before it's deleted.
StatePoweringOffBeforeDelete ProvisioningState = "powering off before delete"

// StateDeleting means we are in the process of cleaning up the host
Expand Down Expand Up @@ -328,7 +328,7 @@ type RAIDConfig struct {
// If there is only one Software RAID device, it has to be a RAID-1.
// If there are two, the first one has to be a RAID-1, while the RAID level for the second one can be 0, 1, or 1+0.
// As the first RAID device will be the deployment device,
// enforcing a RAID-1 reduces the risk of ending up with a non-booting node in case of a disk failure.
// enforcing a RAID-1 reduces the risk of ending up with a non-booting host in case of a disk failure.
// Software RAID will always be deleted.
// +kubebuilder:validation:MaxItems=2
// +optional
Expand Down Expand Up @@ -405,8 +405,9 @@ type BareMetalHostSpec struct {
// +kubebuilder:validation:Pattern=`[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}`
BootMACAddress string `json:"bootMACAddress,omitempty"`

// Should the host be powered on? Changing this value will trigger
// a change in power state of the host.
// Should the host be powered on? If the host is currently in a stable
// state (e.g. provisioned), its power state will be forced to match
// this value.
Online bool `json:"online"`

// ConsumerRef can be used to store information about something
Expand Down Expand Up @@ -437,9 +438,8 @@ type BareMetalHostSpec struct {
NetworkData *corev1.SecretReference `json:"networkData,omitempty"`

// MetaData holds the reference to the Secret containing host metadata
// which is passed to the Config Drive. By default, the operater will
// generate metadata for the host, so most users do not need to set
// this field.
// which is passed to the Config Drive. By default, metadata will be
// generated for the host, so most users do not need to set this field.
MetaData *corev1.SecretReference `json:"metaData,omitempty"`

// Description is a human-entered text used to help identify the host.
Expand All @@ -461,7 +461,7 @@ type BareMetalHostSpec struct {

// A custom deploy procedure. This is an advanced feature that allows
// using a custom deploy step provided by a site-specific deployment
// ramdisk. Most users will want to use "image" instead. Settings this
// ramdisk. Most users will want to use "image" instead. Setting this
// field triggers provisioning.
// +optional
CustomDeploy *CustomDeploy `json:"customDeploy,omitempty"`
Expand Down Expand Up @@ -727,9 +727,9 @@ type CredentialsStatus struct {
type RebootMode string

const (
// RebootModeHard defined for hard reset of a node.
// RebootModeHard defined for hard reset of a host.
RebootModeHard RebootMode = "hard"
// RebootModeSoft defined for soft reset of a node.
// RebootModeSoft defined for soft reset of a host.
RebootModeSoft RebootMode = "soft"
)

Expand Down Expand Up @@ -833,7 +833,7 @@ type BareMetalHostStatus struct {
// The last error message reported by the provisioning subsystem.
ErrorMessage string `json:"errorMessage"`

// Whether or not the host is currently powered on. This field may get
// The currently detected power state of the host. This field may get
// briefly out of sync with the actual state of the hardware while
// provisioning processes are running.
PoweredOn bool `json:"poweredOn"`
Expand All @@ -860,10 +860,10 @@ type ProvisionStatus struct {
// provisioned to the host.
Image Image `json:"image,omitempty"`

// The root device hints set by the user.
// The root device hints used to provision the host.
RootDeviceHints *RootDeviceHints `json:"rootDeviceHints,omitempty"`

// BootMode indicates the boot mode used to provision the node
// BootMode indicates the boot mode used to provision the host.
BootMode BootMode `json:"bootMode,omitempty"`

// The RAID configuration that has been applied.
Expand Down
22 changes: 11 additions & 11 deletions config/base/crds/bases/metal3.io_baremetalhosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ spec:
description: |-
A custom deploy procedure. This is an advanced feature that allows
using a custom deploy step provided by a site-specific deployment
ramdisk. Most users will want to use "image" instead. Settings this
ramdisk. Most users will want to use "image" instead. Setting this
field triggers provisioning.
properties:
method:
Expand Down Expand Up @@ -286,9 +286,8 @@ spec:
metaData:
description: |-
MetaData holds the reference to the Secret containing host metadata
which is passed to the Config Drive. By default, the operater will
generate metadata for the host, so most users do not need to set
this field.
which is passed to the Config Drive. By default, metadata will be
generated for the host, so most users do not need to set this field.
properties:
name:
description: name is unique within a namespace to reference a
Expand Down Expand Up @@ -318,8 +317,9 @@ spec:
x-kubernetes-map-type: atomic
online:
description: |-
Should the host be powered on? Changing this value will trigger
a change in power state of the host.
Should the host be powered on? If the host is currently in a stable
state (e.g. provisioned), its power state will be forced to match
this value.
type: boolean
preprovisioningNetworkDataName:
description: |-
Expand Down Expand Up @@ -406,7 +406,7 @@ spec:
If there is only one Software RAID device, it has to be a RAID-1.
If there are two, the first one has to be a RAID-1, while the RAID level for the second one can be 0, 1, or 1+0.
As the first RAID device will be the deployment device,
enforcing a RAID-1 reduces the risk of ending up with a non-booting node in case of a disk failure.
enforcing a RAID-1 reduces the risk of ending up with a non-booting host in case of a disk failure.
Software RAID will always be deleted.
items:
description: SoftwareRAIDVolume defines the desired configuration
Expand Down Expand Up @@ -900,7 +900,7 @@ spec:
type: string
poweredOn:
description: |-
Whether or not the host is currently powered on. This field may get
The currently detected power state of the host. This field may get
briefly out of sync with the actual state of the hardware while
provisioning processes are running.
type: boolean
Expand All @@ -914,7 +914,7 @@ spec:
type: string
bootMode:
description: BootMode indicates the boot mode used to provision
the node
the host.
enum:
- UEFI
- UEFISecureBoot
Expand Down Expand Up @@ -1069,7 +1069,7 @@ spec:
If there is only one Software RAID device, it has to be a RAID-1.
If there are two, the first one has to be a RAID-1, while the RAID level for the second one can be 0, 1, or 1+0.
As the first RAID device will be the deployment device,
enforcing a RAID-1 reduces the risk of ending up with a non-booting node in case of a disk failure.
enforcing a RAID-1 reduces the risk of ending up with a non-booting host in case of a disk failure.
Software RAID will always be deleted.
items:
description: SoftwareRAIDVolume defines the desired configuration
Expand Down Expand Up @@ -1159,7 +1159,7 @@ spec:
type: array
type: object
rootDeviceHints:
description: The root device hints set by the user.
description: The root device hints used to provision the host.
properties:
deviceName:
description: |-
Expand Down
22 changes: 11 additions & 11 deletions config/render/capm3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ spec:
description: |-
A custom deploy procedure. This is an advanced feature that allows
using a custom deploy step provided by a site-specific deployment
ramdisk. Most users will want to use "image" instead. Settings this
ramdisk. Most users will want to use "image" instead. Setting this
field triggers provisioning.
properties:
method:
Expand Down Expand Up @@ -286,9 +286,8 @@ spec:
metaData:
description: |-
MetaData holds the reference to the Secret containing host metadata
which is passed to the Config Drive. By default, the operater will
generate metadata for the host, so most users do not need to set
this field.
which is passed to the Config Drive. By default, metadata will be
generated for the host, so most users do not need to set this field.
properties:
name:
description: name is unique within a namespace to reference a
Expand Down Expand Up @@ -318,8 +317,9 @@ spec:
x-kubernetes-map-type: atomic
online:
description: |-
Should the host be powered on? Changing this value will trigger
a change in power state of the host.
Should the host be powered on? If the host is currently in a stable
state (e.g. provisioned), its power state will be forced to match
this value.
type: boolean
preprovisioningNetworkDataName:
description: |-
Expand Down Expand Up @@ -406,7 +406,7 @@ spec:
If there is only one Software RAID device, it has to be a RAID-1.
If there are two, the first one has to be a RAID-1, while the RAID level for the second one can be 0, 1, or 1+0.
As the first RAID device will be the deployment device,
enforcing a RAID-1 reduces the risk of ending up with a non-booting node in case of a disk failure.
enforcing a RAID-1 reduces the risk of ending up with a non-booting host in case of a disk failure.
Software RAID will always be deleted.
items:
description: SoftwareRAIDVolume defines the desired configuration
Expand Down Expand Up @@ -900,7 +900,7 @@ spec:
type: string
poweredOn:
description: |-
Whether or not the host is currently powered on. This field may get
The currently detected power state of the host. This field may get
briefly out of sync with the actual state of the hardware while
provisioning processes are running.
type: boolean
Expand All @@ -914,7 +914,7 @@ spec:
type: string
bootMode:
description: BootMode indicates the boot mode used to provision
the node
the host.
enum:
- UEFI
- UEFISecureBoot
Expand Down Expand Up @@ -1069,7 +1069,7 @@ spec:
If there is only one Software RAID device, it has to be a RAID-1.
If there are two, the first one has to be a RAID-1, while the RAID level for the second one can be 0, 1, or 1+0.
As the first RAID device will be the deployment device,
enforcing a RAID-1 reduces the risk of ending up with a non-booting node in case of a disk failure.
enforcing a RAID-1 reduces the risk of ending up with a non-booting host in case of a disk failure.
Software RAID will always be deleted.
items:
description: SoftwareRAIDVolume defines the desired configuration
Expand Down Expand Up @@ -1159,7 +1159,7 @@ spec:
type: array
type: object
rootDeviceHints:
description: The root device hints set by the user.
description: The root device hints used to provision the host.
properties:
deviceName:
description: |-
Expand Down

0 comments on commit ec006da

Please sign in to comment.