UNPKG

@kinvolk/headlamp-plugin

Version:

The needed infrastructure for building Headlamp plugins.

14 lines (13 loc) 604 B
/** * Finds a kubeconfig by cluster name. * @param clusterName The name of the cluster to find. * @param clusterID The ID for a cluster, composed of the kubeconfig path and cluster name * @returns A promise that resolves with the kubeconfig, or null if not found. * @throws Error if IndexedDB is not supported. * @throws Error if the kubeconfig is invalid. */ export declare function findKubeconfigByClusterName( /** The name of the cluster to find */ clusterName: string, /** The ID for a cluster, composed of the kubeconfig path and cluster name */ clusterID?: string): Promise<string | null>;