Skip to content

Google Cloud CLI does not install gke-gcloud-auth-plugin #22

Description

@nicky-lenaers

I have the following devcontainer.json:

{
  "name": "devcontainer",
  "image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
  "features": {
    "ghcr.io/devcontainers/features/git:1": {
      "version": "2.39.1"
    },
    "ghcr.io/devcontainers-contrib/features/pre-commit:2": {
      "version": "v3.3.3"
    },
    "ghcr.io/devcontainers/features/terraform:1": {
      "version": "1.5.1",
      "tflint": "0.47.0"
    },
    "ghcr.io/devcontainers-contrib/features/infracost:1": {
      "version": "v0.10.22"
    },
    "ghcr.io/devcontainers-contrib/features/kubectl-asdf:2": {
      "version": "1.27.3"
    },
    "ghcr.io/dhoeric/features/google-cloud-cli:1": {
      "version": "436.0.0",
      "installGkeGcloudAuthPlugin": true
    },
    "ghcr.io/devcontainers/features/python:1": {
      "version": "3.10"
    },
    "ghcr.io/devcontainers-contrib/features/poetry:2": {
      "version": "1.4.2"
    }
  },
  "forwardPorts": [4200, 8265, 8000],
  "postCreateCommand": "npm install"
}

As you can see I set installGkeGcloudAuthPlugin to true. Then I execute:

$ gke-gcloud-auth-plugin --version

which yields:

bash: gke-gcloud-auth-plugin: command not found

When installing manually through gcloud components install gke-gcloud-auth-plugin I get:

ERROR: (gcloud.components.install) 
You cannot perform this action because the Google Cloud CLI component manager 
is disabled for this installation. You can run the following command 
to achieve the same result for this installation: 

sudo apt-get install google-cloud-sdk-gke-gcloud-auth-plugin

And subsequently sudo apt-get install google-cloud-sdk-gke-gcloud-auth-plugin which yields:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package google-cloud-sdk-gke-gcloud-auth-plugin

Then I also tried "remoteUser": "root" in devcontainer.json but no luck.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions