On a fresh local k3s Kubernetes cluster (the exact k8s technology is of no consequence; I am mentioning it for completeness), when performing a Helm.upgrade(...).install() with explicit withKubeConfigContents set, the library attempts to use the local kubeconfig file (on linx - ~/.kube/config. The use of withKubeConfig works as intended.