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

Add up space list command #459

Merged
merged 5 commits into from
Apr 8, 2024
Merged

Conversation

RedbackThomson
Copy link
Member

Description of your changes

Add a new command up space list to the CLI to determine what spaces are available to the current authenticated user.

Example:

$ up space list -a upbound-papper-cutters
NAME                    MODE        PROVIDER   REGION
upbound-legacy-gke      legacy      gcp        us-central-1
upbound-gke-us-west-1   managed     gcp        us-west-1
upbound-aws-us-east-1   managed     aws        us-east-1
attached-pnx7v          connected              

Relies on upbound/up-sdk-go#71

I have:

  • Read and followed Upbound's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR, as appropriate.

How has this code been tested

cmd/up/space/list.go Outdated Show resolved Hide resolved
cmd/up/space/list.go Outdated Show resolved Hide resolved
@RedbackThomson RedbackThomson force-pushed the spaces-list branch 2 times, most recently from d8d2e29 to eae3dc7 Compare April 4, 2024 21:42
cmd/up/space/attach.go Outdated Show resolved Hide resolved
cmd/up/space/init.go Outdated Show resolved Hide resolved
cmd/up/space/init.go Outdated Show resolved Hide resolved
cmd/up/space/list.go Outdated Show resolved Hide resolved
req.AddCookie(&http.Cookie{
Name: CookieName,
Value: rt.session,
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't support bearer tokens for this? @tnthornton @luxas

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Problem: this stops us from pointing kubectl to it via up ctx.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently we don't, no. @avalanche123 has more context to its limitations.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking the PR, preexisting. But we have to work on it.

cmd/up/space/init.go Outdated Show resolved Hide resolved
Copy link
Contributor

@sttts sttts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits, but nothing blocking.

@RedbackThomson RedbackThomson merged commit d164a7d into upbound:main Apr 8, 2024
6 checks passed
@RedbackThomson RedbackThomson deleted the spaces-list branch April 8, 2024 18:49
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

Successfully merging this pull request may close these issues.

3 participants