kube

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespace

func GetNamespace(nsName string) *corev1.Namespace

GetNamespace returns a namespace object when given a name.

func SetInstance

func SetInstance(kc ClientInstance)

SetInstance sets the Kubernetes interface to use - this is for testing only

Types

type ClientInstance

type ClientInstance struct {
	Client kubernetes.Interface
}

ClientInstance is a wrapper around the kubernetes interface for testing purposes

func GetInstance

func GetInstance() *ClientInstance

GetInstance returns a Kubernetes interface based on the current configuration

type VPAClientInstance

type VPAClientInstance struct {
	Client autoscalingv1beta2.Interface
}

VPAClientInstance is a wrapper around the autoscaling interface for testing purposes

func GetVPAInstance

func GetVPAInstance() *VPAClientInstance

GetVPAInstance returns an interface for VPA based on the current configuration

Jump to

Keyboard shortcuts

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