k8s

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateK8sClient

func CreateK8sClient(
	kubeconfig *string,
) (kubernetes.Interface, error)

CreateK8sClient creates a kubernetes client based on a config passed to it. If a kube config is not passed to the function, we assume we are inside a cluster and try to construct an in cluster configuration TODO: we can test this, but it is really troublesome because it takes a lot of closures and mocking to do for little gain. The TODO is to actually test it though

Types

This section is empty.

Jump to

Keyboard shortcuts

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