utils

package
v0.0.0-...-9c8739f Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// For errors about kustomize
	TEMPLATE_ERROR = "template error"
	// For errors about file system
	FILE_ERROR = "file system error"
	// For errors about create/delete/... resources in cluster
	SERVER_ERROR = "cluster operation error"
	// For exec errors
	EXEC_ERROR = "exec error"
)

Variables

This section is empty.

Functions

func GenErrorMsg

func GenErrorMsg(errType, customMsg string) error

func GetBiliName

func GetBiliName(client *kubernetes.Clientset, namespace, deploymentName string) (string, error)

func GetK8sClient

func GetK8sClient() (*kubernetes.Clientset, *rest.Config, error)

func GetResourceFileSys

func GetResourceFileSys() (filesys.FileSystem, error)

GetResourceFileSys file

func Run

func Run(cmd *exec.Cmd, in io.Reader) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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