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

Issue 204 - Bound tokens for incluster configuration #218

Merged
merged 4 commits into from
Sep 8, 2022

Conversation

jahzielHA
Copy link

@jahzielHA jahzielHA commented Sep 8, 2022

FIX #204

  • New FileTokenAuthRefreshable to refresh the token from the pod every 5 min
  • InCluster configuration changes TokenAuth to use FileTokenAuthRefreshable
  • PodExecImpl - Sometimes was throwing a Promise already completed Exception. Changes promise.success to promise.trysuccess


final case class FileTokenConfiguration(
cachedAccessToken: Option[String],
tokenPath: Option[String],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tokenPath should be mandatory rather than Optional

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

Copy link
Owner

@hagay3 hagay3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add documentation regarding in-cluster configurations
https://github.com/hagay3/skuber/blob/master/docs/README.md

@hagay3 hagay3 self-requested a review September 8, 2022 18:23
@hagay3 hagay3 merged commit 7cce0fd into hagay3:master Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Bound Service Account Token Volume for In-Cluster communication (kubernetes 1.22)
2 participants