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

* Fix AuthInfo godoc for Token / TokenFile precedence

* nit

* update

Kubernetes-commit: 33cd2e1ba08bf6b936c0c2c29bcabe502ce75851
This commit is contained in:
Arthur Befumo 2025-07-02 11:55:24 -04:00 committed by Kubernetes Publisher
parent 0746d1b732
commit 6980728f27
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. // Token is the bearer token for authentication to the kubernetes cluster.
// +optional // +optional
Token string `json:"token,omitempty" datapolicy:"token"` 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 // +optional
TokenFile string `json:"tokenFile,omitempty"` TokenFile string `json:"tokenFile,omitempty"`
// Impersonate is the username to act-as. // 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. // Token is the bearer token for authentication to the kubernetes cluster.
// +optional // +optional
Token string `json:"token,omitempty" datapolicy:"token"` 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 // +optional
TokenFile string `json:"tokenFile,omitempty"` TokenFile string `json:"tokenFile,omitempty"`
// Impersonate is the username to impersonate. The name matches the flag. // Impersonate is the username to impersonate. The name matches the flag.