deployments

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUSEOSID = "suse"
)

Variables

View Source
var (
	Secrets = []string{
		"pki/ca.crt",
		"pki/ca.key",
		"pki/sa.key",
		"pki/sa.pub",
		"pki/front-proxy-ca.crt",
		"pki/front-proxy-ca.key",
		"pki/etcd/ca.crt",
		"pki/etcd/ca.key",
		"admin.conf",
	}
)

Functions

This section is empty.

Types

type Actionable

type Actionable interface {
	Apply(data interface{}, states ...string) error
	UploadFileContents(targetPath, contents string, perm os.FileMode) error
	DownloadFileContents(sourcePath string) (string, error)
	IsServiceEnabled(serviceName string) (bool, error)
}

type BootstrapConfiguration

type BootstrapConfiguration struct {
	KubeadmExtraArgs map[string]string
}

type JoinConfiguration

type JoinConfiguration struct {
	Role             Role
	KubeadmExtraArgs map[string]string
}

type KubernetesBaseOSConfiguration added in v0.7.0

type KubernetesBaseOSConfiguration struct {
	UpdatedVersion string
	CurrentVersion string
}

type Role

type Role uint
const (
	MasterRole Role = iota
	WorkerRole Role = iota
)

func MustGetRoleFromString

func MustGetRoleFromString(s string) (role Role)

type Target

type Target struct {
	Actionable
	Target   string
	Nodename string
	Role     *Role
	Cache    TargetCache
}

func (*Target) Apply

func (t *Target) Apply(data interface{}, states ...string) error

func (*Target) DownloadFileContents

func (t *Target) DownloadFileContents(sourcePath string) (string, error)

func (*Target) InstallNodePattern added in v0.8.0

func (t *Target) InstallNodePattern(kubernetesBaseOSConfiguration KubernetesBaseOSConfiguration) (bool, error)

func (*Target) IsSUSEOS

func (t *Target) IsSUSEOS() (bool, error)

func (*Target) IsServiceEnabled added in v0.9.0

func (t *Target) IsServiceEnabled(serviceName string) (bool, error)

func (*Target) UploadFile

func (t *Target) UploadFile(sourcePath, targetPath string, perm os.FileMode) error

func (*Target) UploadFileContents

func (t *Target) UploadFileContents(targetPath, contents string, perm os.FileMode) error

type TargetCache

type TargetCache struct {
	OsRelease map[string]string
}

type UpgradeConfiguration added in v0.7.0

type UpgradeConfiguration struct {
	KubeadmConfigContents string
}

UpgradeConfiguration holds information passed to kubeadm during upgrade

Directories

Path Synopsis
ssh

Jump to

Keyboard shortcuts

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