Search code examples
google-cloud-platformgoogle-cloud-rungoogle-cloud-code

GCP Cloud code plugin in intellij "Failed to enable GCP auth addon"


While trying to locally run the "java cloud run hello word sample" Cloud Run: Run Locally

I keep getting

Enabling GCP auth addon...

Failed to enable GCP auth addon. Deployment will continue but GCP credentials will not be added to minikube. Please ensure you have up to date application default credentials (ADC) by running gcloud auth login --update-adc

Things that I have tried and didn't solve the problem

  • run gcloud auth login --update-adc
  • use a different service account
  • not provide a service account
  • provide the environment variable GOOGLE_APPLICATION_CREDENTIALS

Current configuration

What am I missing?


Solution

  • It appears to be a bug with minikube

    The workaround:

    1. Install minikube https://minikube.sigs.k8s.io/docs/start/
    2. In your terminal, run minikube delete --all
    3. Delete the existing minikube images from Docker

    The original workaround and issue details can be found below:

    https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues/2949#issuecomment-870120602