agentmanifest

package
v0.3.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 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 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
	Labels          map[string]string
	ClientID        string
	Generation      string
	CheckinInterval string
}

Jump to

Keyboard shortcuts

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