Closed djfinnoy closed 1 year ago
@djfinnoy thanks for creating this issue! This warning comes directly from DevSpace and signals that the build was previously run in a different namespace, which shouldn't be related to gcloud. Since there a builds that require a kubernetes cluster (Kaniko etc.) Kubernetes is sometimes needed. You can disable this warning with:
devspace build ... --no-warn
Ah, I see. My mistake. Is it possible to build --no-warn
into pipelines
, or will we need to include it everytime we use the CLI?
@djfinnoy yes you can also do:
vars:
DEVSPACE_FLAGS: '--no-warn'
which will always include this
Excellent, thank you.
What happened? After upgrading to v6.3.0, Devspace seems to be utilizing the new gke-gcloud-auth-plugin under the hood.
There is an annoying feature of this auth plugin that prompts the user to confirm that they are targeting the correct namespace:
What did you expect to happen instead? Just proceed without verifying the GKE namespace. The build step doesn't even deploy anything to GKE, so I am guessing that this is some sort of peculiarity with the gcloud auth mechanism employed by Devspace.
Hopefully, this functionality is toggleable, and can be disabled when Devspace utilizes gcloud for authentication.
How can we reproduce the bug? (as minimally and precisely as possible)
Swap namespaces with
kubectl
, and try building an image that will be pushed to a Google Artifact Registry.My devspace.yaml:
Local Environment:
Anything else we need to know?