options

package
v0.0.0-...-44dad58 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeletClientConfig

type KubeletClientConfig struct {
	// Port specifies the default port - used if no information about Kubelet port can be found in Node.NodeStatus.DaemonEndpoints.
	Port uint

	// Server requires TLS client certificate authentication
	CertFile string
	// Server requires TLS client certificate authentication
	KeyFile string
}

Subset of the full options exposed in k8s.io/kubernetes/pkg/kubelet/client.KubeletClientConfig

type Options

type Options struct {
	// ServerOption
	ServerOption
	// KubeletOption
	KubeletOption KubeletClientConfig
}

Options holds the config from command line.

func NewVnAgentOptions

func NewVnAgentOptions() (*Options, error)

func (*Options) Config

func (o *Options) Config() (*config.Config, *ServerOption, error)

Config is the config to create a vn-agent server handler.

func (*Options) Flags

func (o *Options) Flags() cliflag.NamedFlagSets

Flags in command line.

type ServerOption

type ServerOption struct {
	// ClientCAFile is the path to a PEM-encoded certificate bundle. If set, any request presenting a client certificate
	// signed by one of the authorities in the bundle is authenticated with a username corresponding to the CommonName,
	// and groups corresponding to the Organization in the client certificate.
	ClientCAFile string
	// CertDirectory is the directory where the TLS certs are located
	CertDirectory string
	// TLSCertFile is the file containing x509 Certificate for HTTPS
	TLSCertFile string
	// TLSPrivateKeyFile is the file containing x509 private key matching tlsCertFile
	TLSPrivateKeyFile string

	// Port is the vn-agent server listening on.
	Port uint

	// FeatureGates enabled by the user.
	FeatureGates map[string]bool
}

Jump to

Keyboard shortcuts

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