Documentation ¶
Index ¶
- func CreateJSONMergePatch(oldObj metav1.Object, newObj metav1.Object, _ interface{}) ([]byte, error)
- func CreateStrategicTwoWayMergePatch(oldObj metav1.Object, newObj metav1.Object, objType interface{}) ([]byte, error)
- func NamespacedName(obj metav1.Object) types.NamespacedName
- func NewPortForwarder(ctx context.Context, restCfg *rest.Config, pod *corev1.Pod, ports []string, ...) (*portforward.PortForwarder, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJSONMergePatch ¶
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.
Click to show internal directories.
Click to hide internal directories.