k8s

package
v1.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJSONMergePatch

func CreateJSONMergePatch(oldObj metav1.Object, newObj metav1.Object, _ interface{}) ([]byte, error)

func CreateStrategicTwoWayMergePatch

func CreateStrategicTwoWayMergePatch(oldObj metav1.Object, newObj metav1.Object, objType interface{}) ([]byte, error)

func NamespacedName

func NamespacedName(obj metav1.Object) types.NamespacedName

func NewPortForwarder

func NewPortForwarder(ctx context.Context, restCfg *rest.Config, pod *corev1.Pod,
	ports []string, readyChan chan struct{}) (*portforward.PortForwarder, error)

NewPortForwarder return a new port forwarder. We can use portForward to get a TCP channel to pod port through APIServer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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