Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Jan 13, 2025
1 parent a01040f commit 69dd28d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ object KubernetesUtils extends Logging {
.withOption(oauthTokenValue) { (token, configBuilder) =>
configBuilder.withOauthToken(token)
}.withOption(oauthTokenFile) { (file, configBuilder) =>
// Prior to Kubernetes 1.24, the default token never expired.
// In newer versions, it expires after 1 hour by defaults.
configBuilder.withOauthTokenProvider(new OAuthTokenProvider {
override def getToken: String = Files.asCharSource(file, Charsets.UTF_8).read()
})
Expand Down

0 comments on commit 69dd28d

Please sign in to comment.