Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetClientSetWrapper = func() (kubernetes.Interface, error) { cfg, err := config.GetConfig() if err != nil { return nil, err } clientset, err := kubernetes.NewForConfig(cfg) if err != nil { return nil, err } return clientset, nil }
GetClientSetWrapper -
Functions ¶
func GetKubeAPIServerVersion ¶ added in v0.2.0
GetKubeAPIServerVersion returns version of the k8s/openshift cluster
func IsOpenShift ¶
IsOpenShift - Returns a boolean which indicates if we are running in an OpenShift cluster
func NewControllerRuntimeClient ¶ added in v0.2.0
func NewControllerRuntimeClient(data []byte) (ctrlClient.Client, error)
NewControllerRuntimeClient will return a new controller runtime client using config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.