kube

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodInfo

type PodInfo struct {
	Name   string `json:"name"`
	Node   string `json:"node"`
	Status string `json:"status"`
	// Phase 는 가공하지 않은 Pod phase 다. Status 는 컨테이너 대기 사유로 덮어써지므로
	// "Succeeded 로 끝난 일회성 Job 인가" 같은 판단은 이 값으로 해야 한다.
	Phase string `json:"phase"`
	Ready bool   `json:"ready"`
}

PodInfo describes a single Pod relevant to the observability dashboard.

func ListPodsInNamespace

func ListPodsInNamespace(ctx context.Context, kubeconfig []byte, namespace string) ([]PodInfo, error)

ListPodsInNamespace returns all pods in the given namespace via the supplied kubeconfig. Status reports the container waiting reason (e.g. CrashLoopBackOff) when present, otherwise the Pod phase (Running, Pending, ...).

Jump to

Keyboard shortcuts

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