Documentation
¶
Index ¶
- func ExecPod(ctx context.Context, clusterID string, pod *corev1.Pod) error
- func FindLatestOrLastFailedPod(pods []corev1.Pod) (latest *corev1.Pod, lastFailed *corev1.Pod)
- func ListPodsForJob(ctx context.Context, clusterID, ns, name string) ([]corev1.Pod, error)
- func NewClient(env *runtime.Env, clusterID string) (kubernetes.Interface, error)
- func PortForward(ctx context.Context, clusterID string, pod *corev1.Pod, ...) error
- func StreamPodLogs(ctx context.Context, clusterID string, pod *corev1.Pod, follow bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindLatestOrLastFailedPod ¶ added in v0.110.0
FindLatestOrLastFailedPod finds the latest pod and the last failed pod from the given list of pods.
func ListPodsForJob ¶ added in v0.110.0
ListPodsForJob lists all pods for the given job.
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.
Click to show internal directories.
Click to hide internal directories.