k8s

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

func GetKubeAPIServerVersion() (*version.Info, error)

GetKubeAPIServerVersion returns version of the k8s/openshift cluster

func IsOpenShift

func IsOpenShift() (bool, error)

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.

Jump to

Keyboard shortcuts

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