cloudinit

package
v3.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package cloudinit implements kubeadm cloudinit functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInitControlPlane

func NewInitControlPlane(input *ControlPlaneInput) ([]byte, error)

NewInitControlPlane returns the clouding string to be used on initializing a controlplane instance.

func NewJoinControlPlane

func NewJoinControlPlane(input *ControlPlaneInput) ([]byte, error)

NewJoinControlPlane returns the cloudinit string to be used on joining a control plane instance.

func NewNode

func NewNode(input *NodeInput) ([]byte, error)

NewNode returns the cloud-init for joining a node instance.

Types

type BaseUserData

type BaseUserData struct {
	Header              string
	PreK3sCommands      []string
	PostK3sCommands     []string
	AdditionalFiles     []bootstrapv1.File
	WriteFiles          []bootstrapv1.File
	ConfigFile          bootstrapv1.File
	SentinelFileCommand string
}

BaseUserData is shared across all the various types of files written to disk.

type ControlPlaneInput

type ControlPlaneInput struct {
	BaseUserData
	secret.Certificates

	ServerConfiguration string
}

ControlPlaneInput defines the context to generate a controlplane instance user data.

type NodeInput

type NodeInput struct {
	BaseUserData
}

NodeInput defines the context to generate an agent node cloud-init.

Jump to

Keyboard shortcuts

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