- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 393 for expirationSeconds (0.18 sec)
-
pkg/kube/rpc_creds.go
tokenNamespace, tokenServiceAccount string, audiences []string, expirationSeconds int64, ) (*authenticationv1.TokenRequest, error) { return client.Kube().CoreV1().ServiceAccounts(tokenNamespace).CreateToken(ctx, tokenServiceAccount, &authenticationv1.TokenRequest{ Spec: authenticationv1.TokenRequestSpec{ Audiences: audiences, ExpirationSeconds: &expirationSeconds, }, }, metav1.CreateOptions{})
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 4K bytes - Viewed (0) -
pkg/registry/certificates/certificates/storage/metrics_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 13.7K bytes - Viewed (0) -
pkg/kube/rpc_creds_test.go
t.Status.Token = rand.String(16) return true, t, nil }, ) const ( refreshSeconds = 1 expirationSeconds = 60 sunsetPeriodSeconds = expirationSeconds - refreshSeconds ) perCred, err := NewRPCCredentials(cli, "default", "default", nil, expirationSeconds, sunsetPeriodSeconds) if err != nil { t.Fatal(err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 16 06:24:33 UTC 2022 - 2.4K bytes - Viewed (0) -
pkg/kubelet/token/token_manager_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 04 00:16:47 UTC 2022 - 16.2K bytes - Viewed (0) -
pkg/controller/certificates/signer/signer.go
} func (s *signer) duration(expirationSeconds *int32) time.Duration { if expirationSeconds == nil { return s.certTTL } // honor requested duration is if it is less than the default TTL // use 10 min (2x hard coded backdate above) as a sanity check lower bound const min = 10 * time.Minute switch requestedDuration := csr.ExpirationSecondsToDuration(*expirationSeconds); { case requestedDuration > s.certTTL:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 15 03:26:08 UTC 2023 - 10.3K bytes - Viewed (0) -
pkg/kubelet/token/token_manager.go
if now.After(exp.Add(-1*time.Duration((*tr.Spec.ExpirationSeconds*20)/100)*time.Second - jitter)) { return true } return false } // keys should be nonconfidential and safe to log func keyFunc(name, namespace string, tr *authenticationv1.TokenRequest) string { var exp int64 if tr.Spec.ExpirationSeconds != nil { exp = *tr.Spec.ExpirationSeconds } var ref authenticationv1.BoundObjectReference
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 10 10:20:09 UTC 2021 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/api/certificates/v1beta1/types.go
// 3. Signer whose configured minimum is longer than the requested duration // // The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. // // +optional ExpirationSeconds *int32 `json:"expirationSeconds,omitempty" protobuf:"varint,8,opt,name=expirationSeconds"` // allowedUsages specifies a set of usage contexts the key will be // valid for. // See:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 10.4K bytes - Viewed (0) -
pkg/controller/certificates/signer/signer_test.go
t.Parallel() tests := []struct { name string certTTL time.Duration expirationSeconds *int32 want time.Duration }{ { name: "can request shorter duration than TTL", certTTL: time.Hour, expirationSeconds: csr.DurationToExpirationSeconds(30 * time.Minute), want: 30 * time.Minute, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 02 21:12:04 UTC 2022 - 15K bytes - Viewed (0) -
pkg/registry/core/serviceaccount/storage/token.go
} } if r.maxExpirationSeconds > 0 && req.Spec.ExpirationSeconds > r.maxExpirationSeconds { //only positive value is valid warning.AddWarning(ctx, "", fmt.Sprintf("requested expiration of %d seconds shortened to %d seconds", req.Spec.ExpirationSeconds, r.maxExpirationSeconds)) req.Spec.ExpirationSeconds = r.maxExpirationSeconds }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 05 10:24:31 UTC 2024 - 10K bytes - Viewed (0) -
staging/src/k8s.io/api/certificates/v1beta1/types_swagger_doc_generated.go
"expirationSeconds": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the...
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 22 00:51:25 UTC 2023 - 5.9K bytes - Viewed (0)