cmds

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Connect = ConnectConfig{
	ServerOptions: apiserver.NewServerOptions(),
}
View Source
var ConnectFlags = []cli.Flag{
	&cli.StringFlag{
		Name:        "http-address",
		Usage:       "(agent/runtime) net/IP to listen on without TLS",
		EnvVars:     []string{"KUBEMATE_INSECURE_ADDRESS"},
		Destination: &Connect.HTTPAddress,
		Value:       Connect.HTTPAddress,
	},
	&cli.IntFlag{
		Name:        "http-port",
		Usage:       "(agent/runtime) non-TLS port to listen on.",
		EnvVars:     []string{"KUBEMATE_INSECURE_PORT"},
		Destination: &Connect.HTTPPort,
		Value:       Connect.HTTPPort,
	},
	&cli.StringFlag{
		Name:        "https-address",
		Usage:       "(agent/runtime) net/IP to listen on with TLS",
		EnvVars:     []string{"KUBEMATE_SECURE_ADDRESS"},
		Destination: &Connect.HTTPSAddress,
		Value:       Connect.HTTPSAddress,
	},
	&cli.IntFlag{
		Name:        "https-port",
		Usage:       "(agent/runtime) TLS port to listen on",
		EnvVars:     []string{"KUBEMATE_SECURE_PORT"},
		Destination: &Connect.HTTPSPort,
		Value:       Connect.HTTPSPort,
	},
	&cli.StringSliceFlag{
		Name:    "advertise-iface",
		Usage:   "(agent/runtime) Name(s) of the network interface(s) to advertise via mdns",
		EnvVars: []string{"KUBEMATE_ADVERTISE_IFACE"},
		Value:   &Connect.AdvertiseIfaces,
	},
	&cli.StringFlag{
		Name:        "web-dir",
		Usage:       "(agent/runtime) directory that holds the static web application",
		EnvVars:     []string{"KUBEMATE_WEB_DIR"},
		Destination: &Connect.WebDir,
		Value:       Connect.WebDir,
	},
	&cli.StringFlag{
		Name:        "manifest-dir",
		Usage:       "(agent/runtime) directory that holds additional manifests the server should be initialized with",
		EnvVars:     []string{"KUBEMATE_MANIFEST_DIR"},
		Destination: &Connect.ManifestDir,
		Value:       Connect.ManifestDir,
	},
	&cli.StringFlag{
		Name:        "data-dir",
		Usage:       "(agent/runtime) directory that holds the apiserver state",
		EnvVars:     []string{"KUBEMATE_DATA_DIR"},
		Destination: &Connect.DataDir,
		Value:       Connect.DataDir,
	},
	&cli.StringSliceFlag{
		Name:    "kubelet-arg",
		Usage:   "(agent/flags) Customized flag for kubelet process",
		EnvVars: []string{"KUBEMATE_KUBELET_ARG"},
		Value:   &Connect.KubeletArgs,
	},
	&cli.BoolFlag{
		Name:        "docker",
		Usage:       "(agent/runtime) enable docker support",
		EnvVars:     []string{"KUBEMATE_DOCKER"},
		Destination: &Connect.Docker,
	},
	&cli.BoolFlag{
		Name:        "write-host-resolvconf",
		Usage:       "(agent/runtime) let kubemate copy /etc/resolv.conf to /host/etc/resolv.conf",
		EnvVars:     []string{"KUBEMATE_WRITE_HOST_RESOLVCONF"},
		Destination: &Connect.WriteHostResolvConf,
	},
	&cli.StringFlag{
		Name:        "shutdown-file",
		Usage:       "(agent/runtime) write a file when a shutdown is initiated via the API",
		EnvVars:     []string{"KUBEMATE_SHUTDOWN_FILE"},
		Destination: &shutdownFile,
	},
	&cli.StringFlag{
		Name:        "log-level",
		Usage:       "(agent/runtime) log level",
		EnvVars:     []string{"KUBEMATE_LOG_LEVEL"},
		Destination: &Connect.LogLevel,
		Value:       Connect.LogLevel,
	},
}

Functions

func NewConnectCommand

func NewConnectCommand(action func(*cli.Context) error) *cli.Command

func RunConnectServer

func RunConnectServer(app *cli.Context) error

Types

type ConnectConfig

type ConnectConfig struct {
	apiserver.ServerOptions
	HTTPAddress     string
	AdvertiseIfaces cli.StringSlice
	KubeletArgs     cli.StringSlice
	LogLevel        string
}

Jump to

Keyboard shortcuts

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