-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[public api] Add gpctl api workspace ownertoken
command
#9983
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
Conversation
/werft run without-vm=true 👍 started the job as gitpod-build-af-add-ownertoken-to-gpctl.4 |
f3d60e4
to
5026995
Compare
8d4509f
to
8ef589e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description uses --gitpod-api-url
but the flag looks to be --address
if I'm not mistaken. Also left a comment about consistency of workspace ID argument
var workspaceID string | ||
|
||
cmd := &cobra.Command{ | ||
Use: "ownertoken", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd possibly call this owner-token
just for readability, up to you.
Ignore, I confused the CLI with the API servier. |
75e94f3
to
2068bb6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/hold
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We'll rectify the cmd
style in a follow-up
2068bb6
to
66591db
Compare
/unhold |
Description
Add a
gpctl api workspace ownertoken
command to get the ownertoken from a given workspace id.This builds on #9966 and #9970.
Related Issue(s)
Part of #9923
How to test
gpctl
against the public API:(the value of
$GITPOD_WORKSPACE_ID
or$TOKEN
don't matter as the gRPC endpoint returns a canned response)The output of
gpctl
should be:Release Notes
Documentation
None
/hold