UNPKG

@kinvolk/headlamp-plugin

Version:

The needed infrastructure for building Headlamp plugins.

14 lines (13 loc) 574 B
import { KubeObject } from '../../../lib/k8s/cluster'; import type { GraphNode } from '../graph/graphModel'; export type KubeObjectStatus = 'error' | 'success' | 'warning'; /** * Returns status for a given Kube resource * Not all kinds of resources have a status and/or supported */ export declare function getStatus(w: KubeObject): KubeObjectStatus; /** * Returns status for a graph node. * Explicit node status takes precedence over kube object status. */ export declare function getGraphNodeStatus(node: Pick<GraphNode, 'kubeObject' | 'status'>): KubeObjectStatus;