Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BmhRefInitState - (legacy, currently unused) BmhRefInitState = "unassigned" // CloudInitUserDataSecretName - Naming template used for generating BaremetalHost cloudinit userdata secrets CloudInitUserDataSecretName = "%s-cloudinit-userdata-%s" // CloudInitNetworkDataSecretName - Naming template used for generating BaremetalHost cloudinit networkdata secrets CloudInitNetworkDataSecretName = "%s-cloudinit-networkdata-%s" // HostnameLabelSelectorSuffix = Suffix used with OSBMS instance name to label BMH as belonging to an entry in OSBMS.Spec.BaremetalHosts HostnameLabelSelectorSuffix = "-osbms-hostname" // HostRemovalAnnotation - (legacy, currently unused) Annotation key placed BMH resources to target them for scale-down HostRemovalAnnotation = "baremetal.openstack.org/delete-host" // MustGatherSecret - Label placed on secrets that are safe to collect with must-gater MustGatherSecret = "baremetal.openstack.org/must-gather-secret" )
Variables ¶
This section is empty.
Functions ¶
func BaremetalHostDeprovision ¶
func BaremetalHostDeprovision( ctx context.Context, helper *helper.Helper, instance *baremetalv1.OpenStackBaremetalSet, bmhStatus baremetalv1.HostStatus, ) error
BaremetalHostDeprovision - Deprovision a BaremetalHost via Metal3 and return the OSP compute hostname that was deleted
func BaremetalHostProvision ¶
func BaremetalHostProvision( ctx context.Context, helper *helper.Helper, instance *baremetalv1.OpenStackBaremetalSet, bmh string, hostName string, ctlPlaneIP string, localImageURL string, sshSecret *corev1.Secret, passwordSecret *corev1.Secret, envVars *map[string]env.Setter, ) error
BaremetalHostProvision - Provision a BaremetalHost via Metal3
func GetBmhRefStatus ¶
func GetBmhRefStatus( instance *baremetalv1.OpenStackBaremetalSet, bmh string, ) (baremetalv1.HostStatus, error)
GetBmhRefStatus - Get the instance.Status.BaremetalHosts entry for the passed "bmh" value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.