Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInstance ¶
func SetInstance(kc ClientInstance)
SetInstance allows the user to set the kubeClient singleton
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
func SetAndGetMock ¶
func SetAndGetMock() *ClientInstance
SetAndGetMock sets the singleton's interface to use a fake ClientSet
Click to show internal directories.
Click to hide internal directories.