UNPKG

@kinvolk/headlamp-plugin

Version:

The needed infrastructure for building Headlamp plugins.

12 lines (11 loc) 462 B
import Pod from '../lib/k8s/pod'; /** * Gets the default container name for a pod based on its current execution state. * * It prioritizes running main containers, then running init containers, * falling back to the first container in the spec if none are running. * * @param item - The pod object to check. * @returns The name of the default container or an empty string if none exist. */ export declare function getDefaultContainer(item: Pod): string;