resources

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 29 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ProvisioningCloudConfig CloudConfigSecret = "provisioning"
	BootstrapCloudConfig    CloudConfigSecret = "bootstrap"

	OperatingSystemConfigNamePattern        = "%s-%s-config"
	CloudConfigSecretNamePattern            = "%s-%s-%s-config"
	MachineDeploymentOSPAnnotation          = "k8c.io/operating-system-profile"
	MachineDeploymentOSPNamespaceAnnotation = "k8c.io/operating-system-profile-namespace"
)

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,
	bootstrapKubeconfig *clientcmdapi.Config,
	bootstrapKubeconfigSecretName string,
	apiServerToken string,
	oscName string,
	namespace string,
	caCert string,
	clusterDNSIPs []net.IP,
	containerRuntime string,
	externalCloudProvider bool,
	pauseImage string,
	initialTaints string,
	nodeHTTPProxy string,
	nodeNoProxy 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

Jump to

Keyboard shortcuts

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