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

Adding a flag to only output the token #122

Conversation

christopherhein
Copy link
Member

@christopherhein christopherhein commented Jul 17, 2018

Why:

  • This enables you to use the authenticator binary to generate
    short-lived access to tools like the Kubernetes Dashboard using the
    token field

This change addresses the need by:

Usecase:

aws-iam-authenticator -i <cluster-name> --only-token 

Signed-off-by: Christopher Hein [email protected]

**Why:**

* This enables you to use the authenticator binary to generate
  short-lived access to tools like the Kubernetes Dashboard using the
  token field

**This change addresses the need by:**

* closes kubernetes-sigs#85

Signed-off-by: Christopher Hein <[email protected]>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 17, 2018
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 17, 2018
@mattlandis
Copy link
Contributor

Nice. This will save a bunch of | jq -r '.status.token'.

@mattlandis mattlandis merged commit 01dd27d into kubernetes-sigs:master Jul 29, 2018
@keithlayne
Copy link

Just wanted to point out that the actual flag is --token-only. Also, it would be awesome if this (and maybe k8s dashboard usage with this project) were mentioned in the readme.

joanayma pushed a commit to joanayma/aws-iam-authenticator that referenced this pull request Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flag for returning just the token attribute
4 participants