userdata

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSystemdArgsToCommand

func AddSystemdArgsToCommand(cmd string, args *EtcdadmArgs) string

func TemplateYAMLIndent

func TemplateYAMLIndent(i int, input string) string

Types

type BaseUserData

type BaseUserData struct {
	Header              string
	PreEtcdadmCommands  []string
	PostEtcdadmCommands []string
	AdditionalFiles     []bootstrapv1.File
	WriteFiles          []bootstrapv1.File
	Users               []bootstrapv1.User
	NTP                 *bootstrapv1.NTP
	DiskSetup           *bootstrapv1.DiskSetup
	Mounts              []bootstrapv1.MountPoints
	ControlPlane        bool
	SentinelFileCommand string
}

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

type EtcdPlaneInput

type EtcdPlaneInput struct {
	BaseUserData
	secret.Certificates
	EtcdadmArgs

	EtcdadmInitCommand string
}

EtcdPlaneInput defines the context to generate etcd instance user data for initializing etcd cluster.

type EtcdPlaneJoinInput

type EtcdPlaneJoinInput struct {
	BaseUserData
	secret.Certificates
	EtcdadmArgs

	EtcdadmJoinCommand string
	JoinAddress        string
}

EtcdPlaneJoinInput defines context to generate etcd instance user data for etcd plane node join.

type EtcdadmArgs

type EtcdadmArgs struct {
	Version         string
	ImageRepository string
	EtcdReleaseURL  string
	InstallDir      string
	CipherSuites    string
}

func (*EtcdadmArgs) SystemdFlags

func (args *EtcdadmArgs) SystemdFlags() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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