bootstrap

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, cluster *v1alpha1.Cluster, ip string) (*v1.Secret, 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:"server"`
	ClientCA        content
	ClientCAKey     content
	ETCDServerCA    content
	ETCDServerCAKey content
}

func DecodedBootstrap

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

Jump to

Keyboard shortcuts

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