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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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