Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could the GCP renderer support REST URIs? #1516

Open
jlewi opened this issue Aug 1, 2024 · 0 comments
Open

Could the GCP renderer support REST URIs? #1516

jlewi opened this issue Aug 1, 2024 · 0 comments

Comments

@jlewi
Copy link
Contributor

jlewi commented Aug 1, 2024

It looks like the GCP renderers depend on pasting the URLs corresponding to the cloud console.

export class GCPResolver implements Disposable {

E.g. for a GKE cluster you'd paste a link like

https://console.cloud.google.com/kubernetes/list/overview?hl=en&project=contr-jeremylewi

In contrast if I was using the REST URI it would look like.

https://container.googleapis.com/v1/projects/${project}/locations/-"

or

https://container.googleapis.com/v1/projects/${project}/locations/us-west1"

I think it might be useful to support REST URIs in addition to console URIs.

An advantage of using REST URIs is these are easily generated with the CLI e.g.

gcloud container clusters list --project=${project} --format="table(name,selfLInk)"

In the context of RunMe this seems like a more useful pattern for generating the link because I can execute it directly in RunMe. If I have to go to the cloud console and then copy the link; then it kind of begs the question why wouldn't I just do everything I need to in the cloud console once I'm there.

@jlewi jlewi changed the title Could the GCP support REST URIs? Could the GCP renderer support REST URIs? Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant