bootstrap

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudInitNamespace = "cloud-init-settings"
)

Variables

This section is empty.

Functions

func ExtractAPIServerToken

func ExtractAPIServerToken(ctx context.Context, client ctrlruntimeclient.Client) (string, error)

Types

type Bootstrap

type Bootstrap struct {
	// contains filtered or unexported fields
}

func New

func New(client ctrlruntimeclient.Client, kubeconfigProvider KubeconfigProvider, bootstrapTokenServiceAccountName *types.NamespacedName, overrideBootstrapKubeletAPIServer string) Bootstrap

func (*Bootstrap) CreateBootstrapKubeconfig

func (b *Bootstrap) CreateBootstrapKubeconfig(ctx context.Context, name string) (*clientcmdapi.Config, string, error)

type KubeconfigProvider

type KubeconfigProvider interface {
	GetKubeconfig(context.Context) (*clientcmdapi.Config, error)
}

Jump to

Keyboard shortcuts

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