oc-login
oc-login copied to clipboard
Add post-step to do graceful logout
Description
This PR adds a post step to the action that runs oc logout and then deletes the kube config file. That should clean up any residual authentication, in case the runner will be re-used.
Related Issue(s)
Fixes #2
Checklist
- [ ] This PR includes a documentation change
- [x] This PR does not need a documentation change
- [ ] This PR includes test changes
- [ ] This PR's changes are already tested
- [x] This change is not user-facing
- [ ] This change is a patch change
- [x] This change is a minor change
- [ ] This change is a major (breaking) change
Changes made
- Changes action description to run post step that does logout and cleanup.
@kriberg Thanks for your contribution!
Could you please add logout
option as an input to this action and let users decide if they want to logout.
Default can be set to true
.
Very similar to this action https://github.com/redhat-actions/podman-login/blob/main/action.yml#L20
@kriberg Thanks for your contribution! Could you please add
logout
option as an input to this action and let users decide if they want to logout. Default can be set totrue
. Very similar to this action https://github.com/redhat-actions/podman-login/blob/main/action.yml#L20
Will do