resources

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 24 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ProvisioningCloudConfig CloudConfigSecret = "provisioning"

	MachineDeploymentSubresourceNamePattern = "%s-%s-osc-%s"
	MachineDeploymentOSPAnnotation          = "k8c.io/operating-system-profile"
)

Variables

This section is empty.

Functions

func GenerateCloudConfigSecret added in v0.4.0

func GenerateCloudConfigSecret(name, namespace string, data []byte) *corev1.Secret

GenerateCloudConfigSecret returns a secret that contains the cloud-init or ignition configurations.

func GenerateOperatingSystemConfig added in v0.4.0

func GenerateOperatingSystemConfig(
	md *v1alpha1.MachineDeployment,
	osp *osmv1alpha1.OperatingSystemProfile,
	oscName string,
	namespace string,
	caCert string,
	clusterDNSIPs []net.IP,
	containerRuntime string,
	externalCloudProvider bool,
	pauseImage string,
	initialTaints string,
	nodeHTTPProxy string,
	nodeNoProxy string,
	nodePortRange string,
	podCidr string,
	containerRuntimeConfig containerruntime.Config,
	kubeletFeatureGates map[string]bool,
) (*osmv1alpha1.OperatingSystemConfig, error)

GenerateOperatingSystemConfig return an OperatingSystemConfig generated against the input data

Types

type CloudConfigSecret

type CloudConfigSecret string

type OperatingSystemConfig

type OperatingSystemConfig struct {
	AmazonLinuxConfig amzn2.Config
	CentOSConfig      centos.Config
	FlatcarConfig     flatcar.Config
	RhelConfig        rhel.Config
	SlesConfig        sles.Config
	UbuntuConfig      ubuntu.Config
}

Jump to

Keyboard shortcuts

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