utils

package
v0.0.0-...-6248b73 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MyKubeConfig = "MY_KUBE_CONFIG"
)

Variables

This section is empty.

Functions

func CreateSoftLink(srcPath, dstPath string) error

func ExecInPod

func ExecInPod(podNs, podName, containerID string, cmd []string) ([]byte, error)

func GetCompClient

func GetCompClient() (*kuda.DataV1alpha1Client, error)

func GetConfig

func GetConfig() (*rest.Config, error)

func GetKubeClient

func GetKubeClient() (*kubernetes.Clientset, error)

func GetValueFromAnnotation

func GetValueFromAnnotation(path, key string) (string, error)

func IsLinkExist

func IsLinkExist(path string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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