watch

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PortForwardShortcutRunes = []rune{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}

Functions

func EnablePortForwardingForDashboard

func EnablePortForwardingForDashboard(ctx context.Context, log logger.Logger, kubeClient client.Client, config *rest.Config, namespace, podName, dashboardPort string) (func(), error)

EnablePortForwardingForDashboard enables port forwarding for the GitOps Dashboard.

func ForwardPort

func ForwardPort(log logr.Logger, pod *corev1.Pod, cfg *rest.Config, specMap *PortForwardSpec, waitFwd, readyChannel chan struct{}) error

func GetNextPortForwardKey added in v0.13.0

func GetNextPortForwardKey(portForwards map[rune]PortForwardShortcut) (rune, error)

func ShowPortForwards added in v0.13.0

func ShowPortForwards(ctx context.Context, log clilogger.Logger, portForwards map[rune]PortForwardShortcut)

Types

type PortForwardShortcut added in v0.13.0

type PortForwardShortcut struct {
	Name     string
	HostPort string
}

type PortForwardSpec

type PortForwardSpec struct {
	Namespace     string
	Name          string
	Kind          string
	HostPort      string
	ContainerPort string
	Map           map[string]string
}

func ParsePortForwardSpec

func ParsePortForwardSpec(spec string) (*PortForwardSpec, error)

parse port forward specin the key-value format of "port=8000:8080,resource=svc/app,namespace=default"

Jump to

Keyboard shortcuts

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