capiutils

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ManifestDir defines the directory name for Cluster API manifests.
	ManifestDir = "cluster-api"
)
View Source
const (
	// Namespace is the namespace for the cluster-api manifests.
	Namespace = "openshift-cluster-api-guests"
)

Variables

This section is empty.

Functions

func CIDRFromInstallConfig

func CIDRFromInstallConfig(installConfig *installconfig.InstallConfig) *ipnet.IPNet

CIDRFromInstallConfig generates the CIDR from the install config, or returns the default CIDR if none is found.

func GenerateBoostrapMachineName added in v0.90.0

func GenerateBoostrapMachineName(infraID string) string

GenerateBoostrapMachineName generates the Cluster API Machine used for bootstrapping from the cluster ID and machine type.

func IsEnabled

func IsEnabled(installConfig *installconfig.InstallConfig) bool

IsEnabled returns true if the feature gate is enabled.

Types

type GenerateClusterAssetsOutput

type GenerateClusterAssetsOutput struct {
	Manifests          []*asset.RuntimeFile
	InfrastructureRefs []*corev1.ObjectReference
}

GenerateClusterAssetsOutput is the output of GenerateClusterAssets.

type GenerateMachinesOutput

type GenerateMachinesOutput struct {
	Manifests []*asset.RuntimeFile
}

GenerateMachinesOutput is the output of GenerateMachines.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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