konstructio / kubefirst

The Kubefirst Open Source Platform
https://kubefirst.konstruct.io/docs
MIT License
1.82k stars 142 forks source link

beta gcp: root-credentials command doesn't utilize non-default regions #1757

Open cameronraysmith opened 1 year ago

cameronraysmith commented 1 year ago

Which version of kubefirst are you using?

2.2.9

Which cloud provider?

Google Cloud

Which installation type?

CLI

Which distributed Git provider?

GitHub

What is the issue?

After creating a cluster in a non-default region, such as with the flag --cloud-region us-central1, the root-credentials command still posts an api call indicating it expects the cluster in the default us-east1 and there doesn't appear to be a flag to modify this.

$ kubefirst beta gcp root-credentials
se01
Error: could not build kubernetes config for gcp cluster se01: error getting container cluster: rpc error: code = NotFound desc = Not found: projects/project-082023/locations/us-east1/clusters/se01.
error details: name = RequestInfo id = 0xb0059c9aa5e723f0 data =

Code of Conduct

fharper commented 1 year ago

Thanks for reporting this issue @cameronraysmith! As discussed in our community, @Claywd may be able to look into this soon.

cameronraysmith commented 1 year ago

Of note, workarounds such as

kubectl -n vault get secrets/vault-unseal-secret --template='{{index .data "root-token"}}' | base64 -d

are already documented here.

fharper commented 1 month ago

@sundaram2021 will work on this.

sundaram2021 commented 1 month ago

sorry for the late , please assign it to me