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
Click to show internal directories.
Click to hide internal directories.