Help us shape the future of Go! Take the 2026 Go Developer Survey

openstackbaremetalset

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL