agentmanifest

package
v0.3.9-rc5 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 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, agentNamespace, controllerNamespace, agentScope string, cg *client.Getter, output io.Writer, tokenName string, opts *Options) error

func AgentToken added in v0.2.0

func AgentToken(ctx context.Context, agentNamespace, 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
	AgentEnvVars    []v1.EnvVar
}

Jump to

Keyboard shortcuts

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