-
Notifications
You must be signed in to change notification settings - Fork 64
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
get token: Print only the token in ouptut #315
Comments
I completely agree with you. It's unfortunate we have the current implementation but we cannot break the current usage for existing scripts/automation compatibility. For now, please see https://github.com/open-cluster-management-io/OCM/blob/main/solutions/setup-dev-environment/local-up.sh#L19-L27 on how to automate the join command in a script. For this issue, I think instead of changing the current output of |
another not so elegant workaround is |
Hi @adambkaplan , we've already have a flag
@mikeshng WDYT? |
json helps, but to get "just the token" requires a pipe to another command (
Bikeshedding here - if someone feels adventurous, they can try adopting an |
@adambkaplan To use the token you need also the hub-api-server, so it does not seems |
|
@mikeshng this project is not v1 yet - what prevents the project from making breaking changes? Is there a release cadence which would let you issue a deprecation notice, followed by the behavior change? |
That's a good point. I prefer if we don't break usage because there might be projects out there already using clusteradm get token in e2e testing. How about adding the PS: I've also seen usage such as that might help your e2e testing case:
/assign @mikeshng |
Feature Request
Allow
clusteradm get token
to only print the token, and/or write just the token to file.This will help developers/admin script the remote cluster registration as follows (for KinD):
The text was updated successfully, but these errors were encountered: