bootstrap

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrServerNotReady = errors.New("server not ready")

Functions

func GenerateBootstrapData added in v0.3.0

func GenerateBootstrapData(ctx context.Context, cluster *v1alpha1.Cluster, ip, token string) ([]byte, error)

Generate generates the bootstrap for the cluster: 1- use the server token to get the bootstrap data from k3s 2- save the bootstrap data as a secret

Types

type ControlRuntimeBootstrap

type ControlRuntimeBootstrap struct {
	ServerCA        content `json:"serverCA"`
	ServerCAKey     content `json:"serverCAKey"`
	ClientCA        content `json:"clientCA"`
	ClientCAKey     content `json:"clientCAKey"`
	ETCDServerCA    content `json:"etcdServerCA"`
	ETCDServerCAKey content `json:"etcdServerCAKey"`
}

func DecodedBootstrap

func DecodedBootstrap(token, ip string) (*ControlRuntimeBootstrap, error)

func GetFromSecret added in v0.3.0

func GetFromSecret(ctx context.Context, client client.Client, cluster *v1alpha1.Cluster) (*ControlRuntimeBootstrap, error)

Jump to

Keyboard shortcuts

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