mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	default service-account-extend-token-expiration to true
				
					
				
			This commit is contained in:
		@@ -274,6 +274,7 @@ func TestAddFlags(t *testing.T) {
 | 
			
		||||
			RequestHeader: &apiserveroptions.RequestHeaderAuthenticationOptions{},
 | 
			
		||||
			ServiceAccounts: &kubeoptions.ServiceAccountAuthenticationOptions{
 | 
			
		||||
				Lookup:           true,
 | 
			
		||||
				ExtendExpiration: true,
 | 
			
		||||
			},
 | 
			
		||||
			TokenFile:            &kubeoptions.TokenFileAuthenticationOptions{},
 | 
			
		||||
			TokenSuccessCacheTTL: 10 * time.Second,
 | 
			
		||||
 
 | 
			
		||||
@@ -165,7 +165,7 @@ func (o *BuiltInAuthenticationOptions) WithRequestHeader() *BuiltInAuthenticatio
 | 
			
		||||
 | 
			
		||||
// WithServiceAccounts set default value for service account authentication
 | 
			
		||||
func (o *BuiltInAuthenticationOptions) WithServiceAccounts() *BuiltInAuthenticationOptions {
 | 
			
		||||
	o.ServiceAccounts = &ServiceAccountAuthenticationOptions{Lookup: true}
 | 
			
		||||
	o.ServiceAccounts = &ServiceAccountAuthenticationOptions{Lookup: true, ExtendExpiration: true}
 | 
			
		||||
	return o
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user