k8s

package
v0.108.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecPod added in v0.60.0

func ExecPod(ctx context.Context, clusterID string, pod *corev1.Pod) error

ExecPod exects into a pod.

func NewClient

func NewClient(env *runtime.Env, clusterID string) (kubernetes.Interface, error)

NewClient creates a new Kubernetes client.

func PortForward added in v0.58.0

func PortForward(ctx context.Context, clusterID string, pod *corev1.Pod, localPort, remotePort int) error

PortForward establishes a port-forwarding session to a pod.

This first attempts tunneling (websocket) dialer, then fallback to SPDY dialer. Please note that the websocket works only with k8s 1.30 with the "PortForwardWebsockets" feature gate enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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