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, ...).
Click to show internal directories.
Click to hide internal directories.