agentmanifest

package
v0.3.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoHostInConfig = errors.New("failed to find cluster server parameter")
)

Functions

func AgentManifest

func AgentManifest(ctx context.Context, systemNamespace, controllerNamespace string, cg *client.Getter, output io.Writer, tokenName string, opts *Options) error

func AgentToken added in v0.2.0

func AgentToken(ctx context.Context, controllerNamespace, kubeConfigFile string, client *client.Client, tokenName string, opts *Options) ([]runtime.Object, error)

func GetCAFromConfig added in v0.3.0

func GetCAFromConfig(rawConfig clientcmdapi.Config) ([]byte, error)

func GetHostFromConfig added in v0.3.0

func GetHostFromConfig(rawConfig clientcmdapi.Config) (string, error)

Types

type Options

type Options struct {
	CA         []byte
	Host       string
	NoCA       bool
	NoCheck    bool
	Labels     map[string]string
	ClientID   string
	Generation string
}

Jump to

Keyboard shortcuts

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