userdata

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package userdata provides a way to generate ec2 instance userdata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNode

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

NewNode returns the user data string to be used on a node instance.

Types

type NodeInput

type NodeInput struct {
	ClusterName           string
	KubeletExtraArgs      map[string]string
	ContainerRuntime      *string
	DNSClusterIP          *string
	DockerConfigJSON      *string
	APIRetryAttempts      *int
	PauseContainerAccount *string
	PauseContainerVersion *string
	UseMaxPods            *bool
	// NOTE: currently the IPFamily/ServiceIPV6Cidr isn't exposed to the user.
	// TODO (richardcase): remove the above comment when IPV6 / dual stack is implemented.
	IPFamily                 *string
	ServiceIPV6Cidr          *string
	PreBootstrapCommands     []string
	PostBootstrapCommands    []string
	BootstrapCommandOverride *string
	Files                    []eksbootstrapv1.File
	DiskSetup                *eksbootstrapv1.DiskSetup
	Mounts                   []eksbootstrapv1.MountPoints
	Users                    []eksbootstrapv1.User
	NTP                      *eksbootstrapv1.NTP
}

NodeInput defines the context to generate a node user data.

func (*NodeInput) BootstrapCommand

func (ni *NodeInput) BootstrapCommand() string

BootstrapCommand returns the bootstrap command to be used on a node instance.

func (*NodeInput) DockerConfigJSONEscaped

func (ni *NodeInput) DockerConfigJSONEscaped() string

DockerConfigJSONEscaped returns the DockerConfigJSON escaped for use in cloud-init.

Jump to

Keyboard shortcuts

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