Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for token_cache (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/stats.go

    		&metrics.HistogramOpts{
    			Namespace:      "authentication",
    			Subsystem:      "token_cache",
    			Name:           "request_duration_seconds",
    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{"status"},
    	)
    	requestCount = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Namespace:      "authentication",
    			Subsystem:      "token_cache",
    			Name:           "request_total",
    			StabilityLevel: metrics.ALPHA,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 01 18:49:09 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  2. security/pkg/credentialfetcher/plugin/gce.go

    		}
    	}
    }
    
    func (p *GCEPlugin) shouldRotate(now time.Time) bool {
    	p.tokenMutex.RLock()
    	defer p.tokenMutex.RUnlock()
    
    	if p.tokenCache == "" {
    		return true
    	}
    	exp, err := util.GetExp(p.tokenCache)
    	// When fails to get expiration time from token, always refresh the token.
    	if err != nil || exp.IsZero() {
    		return true
    	}
    	rotate := now.After(exp.Add(-gracePeriod))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top