Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle cases when running inside a kubernetes cluster (#17)
The current setup for the plugin assumes that we have a kubeconfig file used to connect to the cluster. However, this is not the case if the code submitting the job is itself running in a pod in the cluster, as we will need to use the default service account provided by the cluster. This modifies the init to catch any errors when loading a kubeconfig file and use the incluster configuration instead The issue in the python kubernetes client here describes the problem: kubernetes-client/python#1005
- Loading branch information