cmds

package
v0.0.0-...-04a223e Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 11 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",
		EnvVar:      "KUBEMATE_INSECURE_ADDRESS",
		Destination: &Connect.HTTPAddress,
		Value:       Connect.HTTPAddress,
	},
	cli.IntFlag{
		Name:        "http-port",
		Usage:       "(agent/runtime) non-TLS port to listen on.",
		EnvVar:      "KUBEMATE_INSECURE_PORT",
		Destination: &Connect.HTTPPort,
		Value:       Connect.HTTPPort,
	},
	cli.StringFlag{
		Name:        "https-address",
		Usage:       "(agent/runtime) net/IP to listen on with TLS",
		EnvVar:      "KUBEMATE_SECURE_ADDRESS",
		Destination: &Connect.HTTPSAddress,
		Value:       Connect.HTTPSAddress,
	},
	cli.IntFlag{
		Name:        "https-port",
		Usage:       "(agent/runtime) TLS port to listen on",
		EnvVar:      "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",
		EnvVar: "KUBEMATE_ADVERTISE_IFACE",
		Value:  (*cli.StringSlice)(&Connect.AdvertiseIfaces),
	},
	cli.StringFlag{
		Name:        "web-dir",
		Usage:       "(agent/runtime) directory that holds the static web application",
		EnvVar:      "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",
		EnvVar:      "KUBEMATE_MANIFEST_DIR",
		Destination: &Connect.ManifestDir,
		Value:       Connect.ManifestDir,
	},
	cli.StringFlag{
		Name:        "data-dir",
		Usage:       "(agent/runtime) directory that holds the apiserver state",
		EnvVar:      "KUBEMATE_DATA_DIR",
		Destination: &Connect.DataDir,
		Value:       Connect.DataDir,
	},
	cli.StringSliceFlag{
		Name:   "kubelet-arg",
		Usage:  "(agent/flags) Customized flag for kubelet process",
		EnvVar: "KUBEMATE_KUBELET_ARG",
		Value:  (*cli.StringSlice)(&Connect.KubeletArgs),
	},
	cli.BoolFlag{
		Name:        "docker",
		Usage:       "(agent/runtime) enable docker support",
		EnvVar:      "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",
		EnvVar:      "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",
		EnvVar:      "KUBEMATE_SHUTDOWN_FILE",
		Destination: &shutdownFile,
	},
	cli.StringFlag{
		Name:        "log-level",
		Usage:       "(agent/runtime) log level",
		EnvVar:      "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 []string
	LogLevel        string
}

Jump to

Keyboard shortcuts

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