client

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 50

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigOrDie

func GetConfigOrDie(opts Options) *rest.Config

GetConfigOrDie wraps ctrl.GetConfigOrDie and sets the QPS and Bust options

Types

type Options

type Options struct {
	// QPS indicates the maximum queries-per-second of
	//requests sent to to the Kubernetes API, defaults to 20.
	QPS float32

	// Burst indicates the maximum burst queries-per-second of
	// requests sent to the Kubernetes API, defaults to 50.
	Burst int
}

Options contains the configuration options for the Kubernetes client.

func (*Options) BindFlags

func (o *Options) BindFlags(fs *pflag.FlagSet)

BindFlags will parse the given flagset for Kubernetes client option flags and set the Options accordingly.

Jump to

Keyboard shortcuts

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