contextoptions

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KubecontextFrom

func KubecontextFrom(ctx context.Context) (string, error)

Types

type Consul

type Consul struct {
	UseConsul       bool // enable consul config clients
	RootKey         string
	AllowStaleReads bool
	Client          func() (*api.Client, error)
}

type ContextAccessible

type ContextAccessible struct {
	Interactive    bool
	File           string
	Verbose        bool   // currently only used by install and uninstall, sends kubectl command output to terminal
	KubeConfig     string // file to use for kube config, if not standard one.
	ErrorsOnly     bool
	ConfigFilePath string
	Consul         Consul // use consul as config backend
	ReadOnly       bool   // Makes check read only by skipping any checks that create resources in the cluster
	KubeContext    string // kube context to use when interacting with kubernetes
}

func ContextAccessibleFrom

func ContextAccessibleFrom(ctx context.Context) (ContextAccessible, error)

Jump to

Keyboard shortcuts

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