mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-19 09:38:39 +00:00
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:
parent
0746d1b732
commit
6980728f27
@ -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.
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user