utils

package
v0.0.0-...-32927c9 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientset

func GetClientset(config *rest.Config) (*kubernetes.Clientset, error)

GetClientset returns a kubernetes Clientset.

func GetFreePort

func GetFreePort() (port int, err error)

GetFreePort asks the kernel for a free open port that is ready to use.

func GetProjectDir

func GetProjectDir() (string, error)

GetProjectDir will return the directory where the project is

func Run

func Run(cmd *exec.Cmd) ([]byte, error)

Run executes the provided command within this context

func RunPortForward

func RunPortForward(config *rest.Config, namespace, podName string, ports []string, stopCh, readyCh chan struct{}) error

RunPortForward creates a port-forward for a specific pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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