@nogoo9/no-crd / index / initK8sContext
Function: initK8sContext()
initK8sContext(
customKc?):K8sContext
Defined in: src/k8s/client.ts:176
Initializes and packages the active Kubernetes context (KubeConfig and default API client). Performs setup tasks like reading local kubeconfig or configuring Node TLS bypass.
Parameters
customKc?
KubeConfig
Optional pre-configured KubeConfig context (highly useful for test isolation/stubs).
Returns
The packaged K8sContext object containing the config and client instance.
