Skip to content

gcp-auth addon does not create image pull secret for new namespace #13351

Closed
@katsew

Description

@katsew

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.

  1. run minikube addons enable gcp-auth to install addon
  2. run kubectl create ns new-namespace
  3. 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

Metadata

Metadata

Assignees

Labels

addon/gcp-authIssues with the GCP Auth addonkind/bugCategorizes issue or PR as related to a bug.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions