- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 232 for Ttl (0.03 sec)
-
security/pkg/pki/util/generate_cert_test.go
t.Errorf("Org does not match, (get %s) vs (expected %s)", mergedCertOptions.Org, deltaCertOptions.Org) } if mergedCertOptions.TTL != defaultCertOptions.TTL { t.Errorf("TTL does not match, (get %s) vs (expected %s)", mergedCertOptions.TTL.String(), deltaCertOptions.TTL.String()) } if mergedCertOptions.IsCA != defaultCertOptions.IsCA { t.Errorf("IsCA does not match, (get %t) vs (expected %t)",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 06 12:48:53 UTC 2023 - 29.4K bytes - Viewed (0) -
internal/cachevalue/cache.go
// update function, making it ready for use. func NewFromFunc[T any](ttl time.Duration, opts Opts, update func(ctx context.Context) (T, error)) *Cache[T] { return &Cache[T]{ ttl: ttl, updateFn: update, opts: opts, } } // InitOnce initializes the cache with a TTL and an update function. It is // guaranteed to be called only once. func (t *Cache[T]) InitOnce(ttl time.Duration, opts Opts, update func(ctx context.Context) (T, error)) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 12:50:46 UTC 2024 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/lease_manager_test.go
testCases := []struct { ttl int64 duration int64 }{ { ttl: 3600, duration: 60, }, { ttl: 1000, duration: 50, }, } lm := newDefaultLeaseManager(nil, NewDefaultLeaseManagerConfig()) for i := 0; i < len(testCases); i++ { dur := lm.getReuseDurationSecondsLocked(testCases[i].ttl) if dur != testCases[i].duration {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 11 13:22:07 UTC 2021 - 1.1K bytes - Viewed (0) -
security/pkg/pki/util/keycertbundle_test.go
testCases := []struct { name string ttl float64 time time.Time }{ { name: "ttl valid", ttl: 30, time: t0.Add(time.Second * 30), }, { name: "ttl almost expired", ttl: 2, time: t0.Add(time.Second * 58), }, { name: "ttl just expired", ttl: 0, time: t0.Add(time.Second * 60), }, { name: "ttl-invalid", ttl: -30,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jan 21 06:07:50 UTC 2024 - 15.8K bytes - Viewed (0) -
pkg/cache/ttlCache_test.go
"time" ) func TestTTLBasic(t *testing.T) { ttl := NewTTL(5*time.Second, 1*time.Millisecond) testCacheBasic(ttl, t) } func TestTTLConcurrent(t *testing.T) { ttl := NewTTL(5*time.Second, 1*time.Second) testCacheConcurrent(ttl, t) } func TestTTLExpiration(t *testing.T) { ttl := NewTTL(5*time.Second, 0).(*ttlCache) testCacheExpiration(ttl, ttl.evictExpired, t) } func TestTTLEvicter(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 2.5K bytes - Viewed (0) -
pkg/controller/ttlafterfinished/ttlafterfinished_controller_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 18 18:46:26 UTC 2023 - 5.3K bytes - Viewed (0) -
pkg/controller/ttl/ttl_controller_test.go
}, { node: &v1.Node{}, ttlSeconds: 10, patch: "{\"metadata\":{\"annotations\":{\"node.alpha.kubernetes.io/ttl\":\"10\"}}}", }, { node: &v1.Node{ObjectMeta: metav1.ObjectMeta{Name: "name"}}, ttlSeconds: 10, patch: "{\"metadata\":{\"annotations\":{\"node.alpha.kubernetes.io/ttl\":\"10\"}}}", }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/lease_manager.go
// request a lease with a little extra ttl from etcd ttl += reuseDurationSeconds lcr, err := l.client.Lease.Grant(ctx, ttl) if err != nil { return clientv3.LeaseID(0), err } // cache the new lease id l.prevLeaseID = lcr.ID l.prevLeaseExpirationTime = now.Add(time.Duration(ttl) * time.Second) // refresh count metrics.UpdateLeaseObjectCount(l.leaseAttachedObjectCount) l.leaseAttachedObjectCount = 1 return lcr.ID, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 15 13:53:06 UTC 2021 - 4.8K bytes - Viewed (0) -
pkg/controller/ttlafterfinished/ttlafterfinished_controller.go
// to the `queue`. The Controller has workers who consume `queue`, check whether // the Job TTL has expired or not; if the Job TTL hasn't expired, it will add the // Job to the queue after the TTL is expected to expire; if the TTL has expired, the // worker will send requests to the API server to delete the Jobs accordingly.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 23:59:28 UTC 2024 - 10.4K bytes - Viewed (0) -
pkg/controller/certificates/authority/authority_test.go
policy: PermissiveSigningPolicy{TTL: time.Hour, Backdate: 5 * time.Minute, Now: nowFunc}, want: x509.Certificate{ NotBefore: now.Add(-5 * time.Minute), NotAfter: now.Add(55 * time.Minute), BasicConstraintsValid: true, }, }, { name: "backdate without short and super small ttl", policy: PermissiveSigningPolicy{TTL: time.Minute, Backdate: 5 * time.Minute, Now: nowFunc},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 23 19:36:11 UTC 2021 - 7.3K bytes - Viewed (0)