k8s

package
v0.0.0-...-89265d8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateK8sClientset

func CreateK8sClientset(f *Factory, ops KubeOptions) (*kubernetes.Clientset, *rest.Config, error)

Types

type Factory

type Factory struct {
	KubeConfig string
	Context    string
}

type KubeOptions

type KubeOptions struct {
	// QPS indicates the maximum QPS to the master from this client.
	// If it's zero, the created RESTClient will use DefaultQPS: 5
	KubernetesAPIQPS float32

	// Maximum burst for throttle.
	// If it's zero, the created RESTClient will use DefaultBurst: 10.
	KubernetesAPIBurst int
}

Directories

Path Synopsis
Package secret is a generated GoMock package.
Package secret is a generated GoMock package.

Jump to

Keyboard shortcuts

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