Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for requiresRefresh (0.14 sec)

  1. pkg/kubelet/token/token_manager.go

    }
    
    func (m *Manager) expired(t *authenticationv1.TokenRequest) bool {
    	return m.clock.Now().After(t.Status.ExpirationTimestamp.Time)
    }
    
    // requiresRefresh returns true if the token is older than 80% of its total
    // ttl, or if the token is older than 24 hours.
    func (m *Manager) requiresRefresh(tr *authenticationv1.TokenRequest) bool {
    	if tr.Spec.ExpirationSeconds == nil {
    		cpy := tr.DeepCopy()
    		cpy.Status.Token = ""
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 10:20:09 UTC 2021
    - 6.1K bytes
    - Viewed (0)
Back to top