Description
What Happened?
I enabled gcp-auth addon, and I realized that this addon does not detect namespace creation.
I usually use skaffold with helm, and it automatically creates a namespace for me.
However, with this addon, I have to run minikube addons enable gcp-auth --refresh
every time helm create new namespace, and It is not good workaround for my situation.
Here is the step to reproduce.
- run
minikube addons enable gcp-auth
to install addon - run
kubectl create ns new-namespace
- run
kubectl get secret -n new-namespace
no gcp-auth secret found on that namespace.
This problem may solved by adding webhook for namespace creation.
When new namespace created, the webhook creates a imagePullSecret for the namespace.
https://github.com/GoogleContainerTools/gcp-auth-webhook
However the code of creating imagePullSecret is in this repo.
https://github.com/kubernetes/minikube/blob/master/pkg/addons/addons_gcpauth.go#L140
I'm a bit confused where to report the issue, so let me know if it is a wrong place.
Thanks.
Attach the log file
no logs for minikube.
Operating System
macOS (Default)
Driver
Docker