controller

package
v0.2.2-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AdminCommonName = "system:admin"
)

Variables

View Source
var Backoff = wait.Backoff{
	Steps:    5,
	Duration: 5 * time.Second,
	Factor:   2,
	Jitter:   0.1,
}

Backoff is the cluster creation duration backoff

Functions

func Addresses

func Addresses(ctx context.Context, client ctrlruntimeclient.Client) ([]string, error)

return all the nodes external addresses, if not found then return internal addresses

func K3SImage

func K3SImage(cluster *v1alpha1.Cluster) string

func SafeConcatName

func SafeConcatName(name ...string) string

SafeConcatName concatenates the given strings and ensures the returned name is under 64 characters by cutting the string off at 57 characters and setting the last 6 with an encoded version of the concatenated string.

func SafeConcatNameWithPrefix

func SafeConcatNameWithPrefix(name ...string) string

SafeConcatNameWithPrefix runs the SafeConcatName with extra prefix.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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