We are trying to use this package in all kinds of scenarios, and one of those is running the code in a Job/Pod in the cluster. Currently the package demands a kube.config file. I suggest adding the Incluster config loading fallback to the Go code:
Example
What I Did
Currently we are trying to work around this issue by generating a kube.config file dynamically, but it is not a great solution.
Description
We are trying to use this package in all kinds of scenarios, and one of those is running the code in a Job/Pod in the cluster. Currently the package demands a kube.config file. I suggest adding the Incluster config loading fallback to the Go code: Example
What I Did
Currently we are trying to work around this issue by generating a kube.config file dynamically, but it is not a great solution.