environment

package
v0.0.0-...-2cb4bbe Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	Cluster    string  // K8s cluster (defaults to cluster in kubeconfig)
	ServerURL  string  // ServerURL - The address of the Kubernetes API server. Overrides any value in kubeconfig.
	Burst      int     // Burst - Maximum burst for throttle.
	QPS        float64 // QPS - Maximum QPS to the server from the client.
	Kubeconfig string  // Kubeconfig - Path to a kubeconfig. Current casing is present for backwards compatibility
}

ClientConfig holds the information about the environment and can be configured with flags

func (*ClientConfig) GetRESTConfig

func (c *ClientConfig) GetRESTConfig() (*rest.Config, error)

func (*ClientConfig) InitFlags

func (c *ClientConfig) InitFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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