Fix AuthInfo godoc for Token / TokenFile precedence (#132659)

* Fix AuthInfo godoc for Token / TokenFile precedence

* nit

* update
This commit is contained in:
Arthur Befumo
2025-07-02 11:55:24 -04:00
committed by GitHub
parent 01c03ae9cf
commit 33cd2e1ba0
2 changed files with 4 additions and 2 deletions

View File

@@ -125,7 +125,8 @@ type AuthInfo struct {
// Token is the bearer token for authentication to the kubernetes cluster.
// +optional
Token string `json:"token,omitempty" datapolicy:"token"`
// TokenFile is a pointer to a file that contains a bearer token (as described above). If both Token and TokenFile are present, Token takes precedence.
// TokenFile is a pointer to a file that contains a bearer token (as described above). If both Token and TokenFile are present,
// the TokenFile will be periodically read and the last successfully read value takes precedence over Token.
// +optional
TokenFile string `json:"tokenFile,omitempty"`
// Impersonate is the username to act-as.

View File

@@ -115,7 +115,8 @@ type AuthInfo struct {
// Token is the bearer token for authentication to the kubernetes cluster.
// +optional
Token string `json:"token,omitempty" datapolicy:"token"`
// TokenFile is a pointer to a file that contains a bearer token (as described above). If both Token and TokenFile are present, Token takes precedence.
// TokenFile is a pointer to a file that contains a bearer token (as described above). If both Token and TokenFile are present,
// the TokenFile will be periodically read and the last successfully read value takes precedence over Token.
// +optional
TokenFile string `json:"tokenFile,omitempty"`
// Impersonate is the username to impersonate. The name matches the flag.