k3auto

package
v0.0.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, conf Config) (ctrlclient.Client, error)

func Delete

func Delete(ctx context.Context, conf Config) error

func Deploy

func Deploy(ctx context.Context, name string, directory string, bootstrap string, filesystem afero.Fs) error

func InitializeCluster

func InitializeCluster(ctx context.Context, config *k3dv1alpha5.SimpleConfig, runtime k3druntimes.Runtime) (ctrlclient.Client, error)

func InjectFluxControllers

func InjectFluxControllers(ctx context.Context, k8sC ctrlclient.Client) error

func InjectRegistry

func InjectRegistry(ctx context.Context, k8sC ctrlclient.Client) error

func InjectSecrets

func InjectSecrets(ctx context.Context, k8sC ctrlclient.Client, secretFileLocation string) error

func ParseK3dConfigFile

func ParseK3dConfigFile(configPath string) (*k3dv1alpha5.SimpleConfig, error)

func PortForward added in v0.0.15

func PortForward(ctx context.Context, name apimachinerytypes.NamespacedName, port int) (chan struct{}, error)

func PortForwardDeployment added in v0.0.17

func PortForwardDeployment(ctx context.Context, name apimachinerytypes.NamespacedName, port int) (chan struct{}, error)

func PortForwardService added in v0.0.17

func PortForwardService(ctx context.Context, name apimachinerytypes.NamespacedName, port int) (chan struct{}, error)

func Update

func Update(ctx context.Context, conf Config) error

Types

type Config

type Config struct {
	Minimal bool

	DeploymentDirectory string

	DeploymentFilesystem afero.Fs

	BootstrapDirectory string
	SecretFile         string
	ClusterConfigFile  string
}

Jump to

Keyboard shortcuts

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