utilk8s

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultKubeContext = ""

Variables

This section is empty.

Functions

func ExecInPod added in v0.12.0

func ExecInPod(config *rest.Config, kubeCl kubernetes.Interface, cmdLine []string, podName string, namespace string, containerName string) (remotecommand.Executor, error)

func GetDeckhousePod added in v0.12.0

func GetDeckhousePod(kubeCl kubernetes.Interface) (string, error)

func SetupK8sClientSet

func SetupK8sClientSet(kubeconfigPath, contextName string) (*rest.Config, *kubernetes.Clientset, error)

SetupK8sClientSet reads kubeconfig file at kubeconfigPath and constructs a kubernetes clientset from it. If contextName is not empty, context under that name is used instead of default.

Types

This section is empty.

Jump to

Keyboard shortcuts

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