utils

package
v1.5.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructKargsForBootstrap

func ConstructKargsForBootstrap(installConfig *types.InstallConfig) (string, error)

ConstructKargsForBootstrap constructs the kargs string for a bootstrap node.

func ConstructKargsFromNetworkConfig

func ConstructKargsFromNetworkConfig(ipAddrs []string, nameservers []string, gateways []string) (string, error)

ConstructKargsFromNetworkConfig constructs the kargs string from the network configuration.

func ConstructNetworkKargsFromMachine

func ConstructNetworkKargsFromMachine(claims []ipamv1.IPAddressClaim, addresses []ipamv1.IPAddress, machine *machinev1beta1.Machine, network machinev1beta1.NetworkDeviceSpec) (string, error)

ConstructNetworkKargsFromMachine does something.

func GenerateVSphereTemplateName

func GenerateVSphereTemplateName(clusterID, fdName string) string

GenerateVSphereTemplateName returns expected template name.

func GetOSImageStream

func GetOSImageStream(ic *types.InstallConfig) string

GetOSImageStream returns the OS image stream value from the install config, defaulting to the value of `DefaultOSImageStream` in as defined in pkg/rhcos/stream.go if not specified.

func SetCPMSOSStreamLabels

func SetCPMSOSStreamLabels(cpms *machinev1.ControlPlaneMachineSet, ic *types.InstallConfig)

SetCPMSOSStreamLabels adds the OS image stream label to a ControlPlaneMachineSet's metadata and Spec.Template if the OSStreams feature gate is enabled.

func SetMachineOSStreamLabels

func SetMachineOSStreamLabels[T metav1.Object](obj T, ic *types.InstallConfig)

SetMachineOSStreamLabels adds the OS image stream label to a Machine if the OSStreams feature gate is enabled.

func SetMachineSetOSStreamLabels

func SetMachineSetOSStreamLabels(machineSet *machineapi.MachineSet, ic *types.InstallConfig)

SetMachineSetOSStreamLabels adds the OS image stream label to a MachineSet's metadata and Spec.Template if the OSStreams feature gate is enabled.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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