You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We embed steps from this orb in an orb of our own, and so sometimes we end up calling it in a workflow that is running from an image that has at least the base gcloud already installed, such as gcr.io/google.com/cloudsdktool/cloud-sdk, since our orb steps that need gcloud sometimes run in containers without gcloud pre-installed, and sometimes in ones that have it installed.
This orb detects that gcloud is already installed, but then when trying to install the requested components, it always uses gcloud components install ..., which is not allowed when gcloud was installed via apt (or some other package manager). This causes the install step to fail with an error like this:
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
Expected behavior
It should install the requested components via apt-get when necessary.
Additional Notes
Google is in the process of trying to transition the name of the "sdk" package to "cli", and the names of the component packages needs to match the main gcloud package, so e.g. if google-cloud-cli is installed, component packages need to be installed as google-cloud-cli-<component>, trying to install google-cloud-sdk-<component> will fail, and vice versa. It doesn't help matters that the error message from gcloud components install always tells you to use the sdk variant even when that's wrong.
The text was updated successfully, but these errors were encountered:
Orb version
3.0.1
What happened
We embed steps from this orb in an orb of our own, and so sometimes we end up calling it in a workflow that is running from an image that has at least the base gcloud already installed, such as
gcr.io/google.com/cloudsdktool/cloud-sdk
, since our orb steps that needgcloud
sometimes run in containers without gcloud pre-installed, and sometimes in ones that have it installed.This orb detects that
gcloud
is already installed, but then when trying to install the requested components, it always usesgcloud components install ...
, which is not allowed whengcloud
was installed viaapt
(or some other package manager). This causes the install step to fail with an error like this:Expected behavior
It should install the requested components via
apt-get
when necessary.Additional Notes
Google is in the process of trying to transition the name of the "sdk" package to "cli", and the names of the component packages needs to match the main gcloud package, so e.g. if
google-cloud-cli
is installed, component packages need to be installed asgoogle-cloud-cli-<component>
, trying to installgoogle-cloud-sdk-<component>
will fail, and vice versa. It doesn't help matters that the error message fromgcloud components install
always tells you to use thesdk
variant even when that's wrong.The text was updated successfully, but these errors were encountered: