mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
default service-account-extend-token-expiration
to true
This commit is contained in:
parent
eca53507be
commit
4c593b268a
@ -273,7 +273,8 @@ func TestAddFlags(t *testing.T) {
|
|||||||
},
|
},
|
||||||
RequestHeader: &apiserveroptions.RequestHeaderAuthenticationOptions{},
|
RequestHeader: &apiserveroptions.RequestHeaderAuthenticationOptions{},
|
||||||
ServiceAccounts: &kubeoptions.ServiceAccountAuthenticationOptions{
|
ServiceAccounts: &kubeoptions.ServiceAccountAuthenticationOptions{
|
||||||
Lookup: true,
|
Lookup: true,
|
||||||
|
ExtendExpiration: true,
|
||||||
},
|
},
|
||||||
TokenFile: &kubeoptions.TokenFileAuthenticationOptions{},
|
TokenFile: &kubeoptions.TokenFileAuthenticationOptions{},
|
||||||
TokenSuccessCacheTTL: 10 * time.Second,
|
TokenSuccessCacheTTL: 10 * time.Second,
|
||||||
|
@ -165,7 +165,7 @@ func (o *BuiltInAuthenticationOptions) WithRequestHeader() *BuiltInAuthenticatio
|
|||||||
|
|
||||||
// WithServiceAccounts set default value for service account authentication
|
// WithServiceAccounts set default value for service account authentication
|
||||||
func (o *BuiltInAuthenticationOptions) WithServiceAccounts() *BuiltInAuthenticationOptions {
|
func (o *BuiltInAuthenticationOptions) WithServiceAccounts() *BuiltInAuthenticationOptions {
|
||||||
o.ServiceAccounts = &ServiceAccountAuthenticationOptions{Lookup: true}
|
o.ServiceAccounts = &ServiceAccountAuthenticationOptions{Lookup: true, ExtendExpiration: true}
|
||||||
return o
|
return o
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user