provisioning

package
v0.0.0-...-3e37b37 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// OpenshiftConfigNamespace holds the name of the openshift-config namespace.
	OpenshiftConfigNamespace = "openshift-config"
	// PullSecretName holds the name of the pull-secret in openshift-config and openshift-machine-config.
	PullSecretName = "pull-secret"
)
View Source
const (
	DaemonSetProgressing    appsv1.DaemonSetConditionType = "Progressing"
	DaemonSetReplicaFailure appsv1.DaemonSetConditionType = "ReplicaFailure"
	DaemonSetAvailable      appsv1.DaemonSetConditionType = "Available"
	DaemonSetDisabled       appsv1.DaemonSetConditionType = "Disabled"
)

Variables

This section is empty.

Functions

func BaremetalWebhookDependenciesReady

func BaremetalWebhookDependenciesReady(client osclientset.Interface) bool

BaremetalWebhookDependenciesReady checks dependencies to enable Baremetal Operator ValidatingWebhook.

func DeleteAllSecrets

func DeleteAllSecrets(info *ProvisioningInfo) error

func DeleteBaremetalOperatorDeployment

func DeleteBaremetalOperatorDeployment(info *ProvisioningInfo) error

func DeleteImageCache

func DeleteImageCache(info *ProvisioningInfo) error

func DeleteImageCustomizationDeployment

func DeleteImageCustomizationDeployment(info *ProvisioningInfo) error

func DeleteImageCustomizationService

func DeleteImageCustomizationService(info *ProvisioningInfo) error

func DeleteIronicProxy

func DeleteIronicProxy(info *ProvisioningInfo) error

func DeleteMetal3Deployment

func DeleteMetal3Deployment(info *ProvisioningInfo) error

func DeleteMetal3StateService

func DeleteMetal3StateService(info *ProvisioningInfo) error

func DeleteValidatingWebhook

func DeleteValidatingWebhook(info *ProvisioningInfo) error

DeleteValidatingWebhook deletes ValidatingWebhookConfiguration and service resources.

func EnableValidatingWebhook

func EnableValidatingWebhook(info *ProvisioningInfo, mgr manager.Manager, enabledFeatures metal3iov1alpha1.EnabledFeatures) error

func EnsureAllSecrets

func EnsureAllSecrets(info *ProvisioningInfo) (bool, error)

func EnsureBaremetalOperatorDeployment

func EnsureBaremetalOperatorDeployment(info *ProvisioningInfo) (updated bool, err error)

func EnsureBaremetalOperatorWebhook

func EnsureBaremetalOperatorWebhook(info *ProvisioningInfo) (bool, error)

EnsureBaremetalOperatorWebhook ensures ValidatingWebhook resources are ready to serve.

func EnsureImageCache

func EnsureImageCache(info *ProvisioningInfo) (updated bool, err error)

func EnsureImageCustomizationDeployment

func EnsureImageCustomizationDeployment(info *ProvisioningInfo) (updated bool, err error)

func EnsureImageCustomizationService

func EnsureImageCustomizationService(info *ProvisioningInfo) (updated bool, err error)

func EnsureIronicProxy

func EnsureIronicProxy(info *ProvisioningInfo) (updated bool, err error)

func EnsureMetal3Deployment

func EnsureMetal3Deployment(info *ProvisioningInfo) (updated bool, err error)

func EnsureMetal3StateService

func EnsureMetal3StateService(info *ProvisioningInfo) (updated bool, err error)

func GetBaremetalOperatorDeploymentState

func GetBaremetalOperatorDeploymentState(client appsclientv1.DeploymentsGetter, targetNamespace string, config *metal3iov1alpha1.Provisioning) (appsv1.DeploymentConditionType, error)

func GetContainerImages

func GetContainerImages(containerImages *Images, imagesFilePath string) error

func GetDeploymentState

func GetDeploymentState(client appsclientv1.DeploymentsGetter, targetNamespace string, config *metal3iov1alpha1.Provisioning) (appsv1.DeploymentConditionType, error)

Provide the current state of metal3 deployment

func GetImageCacheState

func GetImageCacheState(client appsclientv1.DaemonSetsGetter, targetNamespace string, config *metal3iov1alpha1.Provisioning) (appsv1.DaemonSetConditionType, error)

Provide the current state of metal3 image-cache daemonset

func GetIronicIPs

func GetIronicIPs(info *ProvisioningInfo) (ironicIPs []string, err error)

GetIronicIPs returns Ironic IPs for external consumption, potentially behind an HA proxy. Without a proxy, the provisioning IP is used when present and not disallowed for virtual media via configuration.

func GetIronicProxyState

func GetIronicProxyState(client appsclientv1.DaemonSetsGetter, targetNamespace string, config *metal3iov1alpha1.Provisioning) (appsv1.DaemonSetConditionType, error)

Provide the current state of ironic-proxy daemonset

func GetRealIronicIPs

func GetRealIronicIPs(info *ProvisioningInfo) ([]string, error)

GetRealIronicIPs returns the actual IPs on which Ironic is accessible without a proxy. The provisioning IP is used when present and not disallowed for virtual media via configuration.

func IpOptionForProvisioning

func IpOptionForProvisioning(config *metal3iov1alpha1.ProvisioningSpec, networkStack NetworkStackType) string

func UseIronicProxy

func UseIronicProxy(config *metal3iov1alpha1.ProvisioningSpec) bool

func WebhookDependenciesReady

func WebhookDependenciesReady(client osclientset.Interface) bool

Types

type Images

type Images struct {
	BaremetalOperator            string `json:"baremetalOperator"`
	Ironic                       string `json:"baremetalIronic"`
	MachineOsDownloader          string `json:"baremetalMachineOsDownloader"`
	StaticIpManager              string `json:"baremetalStaticIpManager"`
	IronicAgent                  string `json:"baremetalIronicAgent"`
	ImageCustomizationController string `json:"imageCustomizationController"`
	MachineOSImages              string `json:"machineOSImages"`
}

type NetworkStackType

type NetworkStackType int
const (
	NetworkStackV4   NetworkStackType = 1 << iota
	NetworkStackV6   NetworkStackType = 1 << iota
	NetworkStackDual NetworkStackType = (NetworkStackV4 | NetworkStackV6)
)

func (NetworkStackType) IpOption

func (ns NetworkStackType) IpOption() string

type ProvisioningInfo

type ProvisioningInfo struct {
	Client                  kubernetes.Interface
	EventRecorder           events.Recorder
	ProvConfig              *metal3iov1alpha1.Provisioning
	Scheme                  *runtime.Scheme
	Namespace               string
	Images                  *Images
	Proxy                   *configv1.Proxy
	NetworkStack            NetworkStackType
	MasterMacAddresses      []string
	SSHKey                  string
	BaremetalWebhookEnabled bool
	OSClient                osclientset.Interface
	ResourceCache           resourceapply.ResourceCache
}

type TlsCertificate

type TlsCertificate struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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