Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 376 for expirationSeconds (0.22 sec)

  1. 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)
  2. pkg/registry/certificates/certificates/storage/metrics_test.go

    					Certificate: []byte("junk"),
    				},
    			},
    			old: &certificates.CertificateSigningRequest{
    				Spec: certificates.CertificateSigningRequestSpec{
    					SignerName:        "fancy",
    					ExpirationSeconds: ptr.To[int32](77),
    				},
    			},
    			options:       &metav1.UpdateOptions{},
    			wantSigner:    "other",
    			wantRequested: true,
    			wantHonored:   false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/api/certificates/v1beta1/generated.proto

      //   3. Signer whose configured minimum is longer than the requested duration
      //
      // The minimum valid value for expirationSeconds is 600, i.e. 10 minutes.
      //
      // +optional
      optional int32 expirationSeconds = 8;
    
      // allowedUsages specifies a set of usage contexts the key will be
      // valid for.
      // See:
      // 	https://tools.ietf.org/html/rfc5280#section-4.2.1.3
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/certificates/v1beta1/generated.proto

      //   3. Signer whose configured minimum is longer than the requested duration
      //
      // The minimum valid value for expirationSeconds is 600, i.e. 10 minutes.
      //
      // +optional
      optional int32 expirationSeconds = 8;
    
      // allowedUsages specifies a set of usage contexts the key will be
      // valid for.
      // See:
      // 	https://tools.ietf.org/html/rfc5280#section-4.2.1.3
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/authentication/v1/types.go

    	// ExpirationSeconds is the requested duration of validity of the request. The
    	// token issuer may return a token with a different validity duration so a
    	// client needs to check the 'expiration' field in a response.
    	// +optional
    	ExpirationSeconds *int64 `json:"expirationSeconds" protobuf:"varint,4,opt,name=expirationSeconds"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top