config

package
v1.21.9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 29 Imported by: 10

Documentation

Index

Constants

View Source
const (
	DefaultPodManifestPath = "pod-manifests"
)

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, agent cmds.Agent, proxy proxy.Proxy) *config.Node

Get returns a pointer to a completed Node configuration struct, containing a merging of the local CLI configuration with settings from the server. A call to this will bock until agent configuration is successfully returned by the server.

func KubeProxyDisabled added in v1.21.9

func KubeProxyDisabled(ctx context.Context, node *config.Node, proxy proxy.Proxy) bool

KubeProxyDisabled returns a bool indicating whether or not kube-proxy has been disabled in the server configuration. The server may not have a complete view of cluster configuration until after all startup hooks have completed, so a call to this will block until after the server's readyz endpoint returns OK.

func Request added in v0.5.0

func Request(path string, info *clientaccess.Info, requester HTTPRequester) ([]byte, error)

Types

type HTTPRequester added in v0.5.0

type HTTPRequester func(u string, client *http.Client, username, password string) ([]byte, error)

Jump to

Keyboard shortcuts

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