ignition

package
v0.0.0-...-485f473 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// CloudConfigOption is the kubelet CLI option for the cloud configuration file
	CloudConfigOption = "cloud-config"
	// CloudProviderOption is the kubelet CLI option for cloud provider
	CloudProviderOption = "cloud-provider"
	// RenderedWorkerPrefix allows identification of the rendered worker MachineConfig, the combination of all worker
	// MachineConfigs.
	RenderedWorkerPrefix = "rendered-worker-"
	// CloudConfigPath is the path to the cloud config file as defined in ignition
	CloudConfigPath = "/etc/kubernetes/cloud.conf"
	// CloudConfigPath is the path to the ecr credential provider config as defined in ignition
	ECRCredentialProviderPath = "/etc/kubernetes/credential-providers/ecr-credential-provider.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ignition

type Ignition struct {
	// contains filtered or unexported fields
}

Ignition is a representation of an Ignition resource

func New

func New(c client.Client) (*Ignition, error)

New returns a new instance of Ignition

func (*Ignition) GetFiles

func (ign *Ignition) GetFiles() []ignCfgTypes.File

GetFiles is a getter for the files embedded within the ignition spec

func (*Ignition) GetKubeletArgs

func (ign *Ignition) GetKubeletArgs() (map[string]string, error)

GetKubeletArgs returns a set of arguments for kubelet.exe, as specified in the ignition file

func (*Ignition) GetKubeletCAData

func (ign *Ignition) GetKubeletCAData() []byte

GetKubeletCAData is a getter for kubelet CA raw data

Jump to

Keyboard shortcuts

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