-
Notifications
You must be signed in to change notification settings - Fork 9
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
doc: Add API example to documentation #11
Conversation
/cc @0xFelix @codingben |
CI is not needed for this PR. /override ci/prow/images |
@akrejcir: Overrode contexts on behalf of akrejcir: ci/prow/images In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The `KUBERNETES_USER_TOKEN` variable is a bearer token used to authenticate with | ||
kubernetes API. It can be obtained using: | ||
```bash | ||
KUBERNETES_USER_TOKEN=$(oc whoami -t) |
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.
Can you add an example on how to acquire a token with kubectl too?
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'm not sure there is a simple command to do that using kubectl
.
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.
Unfortunately, I'd love to see this also run on plain Kubernetes.
- Moved API documentation to a separate file. - Added examples how to call the API. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
e4bbaa8
to
0be7330
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
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Release note: