utils

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var User string = os.Getenv("SUDO_USER")

Functions

func DoSSA

func DoSSA(ctx context.Context, cfg *rest.Config, yaml []byte) error

DoSSA does service side apply with the given YAML as a []byte

func DownloadFileString added in v0.0.8

func DownloadFileString(url string) (string, error)

DownloadFileString will load the contents of a url to a string and return it

func GetDefaultRuntime

func GetDefaultRuntime() cluster.ProviderOption

GetDefault selected the default runtime from the environment override

func IsDeploymentRunning

func IsDeploymentRunning(c kubernetes.Interface, ns string, depl string) wait.ConditionFunc

check to see if the named deployment is running

func NewClient

func NewClient(kubeConfigPath string) (kubernetes.Interface, error)

NewClient returns a kubernetes.Interface

func SplitYAML added in v0.0.8

func SplitYAML(resources []byte) ([][]byte, error)

SplitYAML splits a multipart YAML and returns a slice of a slice of byte

func WaitForDeployment

func WaitForDeployment(c kubernetes.Interface, namespace string, deployment string, timeout time.Duration) error

Poll up to timeout seconds for pod to enter running state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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