Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 232 for Ttl (0.02 sec)

  1. pkg/controller/controller_utils_test.go

    // NewFakeControllerExpectationsLookup creates a fake store for PodExpectations.
    func NewFakeControllerExpectationsLookup(ttl time.Duration) (*ControllerExpectations, *testingclock.FakeClock) {
    	fakeTime := time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)
    	fakeClock := testingclock.NewFakeClock(fakeTime)
    	ttlPolicy := &cache.TTLPolicy{TTL: ttl, Clock: fakeClock}
    	ttlStore := cache.NewFakeExpirationStore(
    		ExpKeyFunc, nil, ttlPolicy, fakeClock)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. security/pkg/pki/error/error.go

    type ErrType int
    
    const (
    	// CANotReady means the CA is not ready to sign CSRs.
    	CANotReady ErrType = iota
    	// CSRError means the CA cannot sign CSR due to CSR error.
    	CSRError
    	// TTLError means the required TTL is invalid.
    	TTLError
    	// CertGenError means an error happened during the certificate generation.
    	CertGenError
    	// CAIllegalConfig means the configuration/deployment parameters for CA are incorrect
    	CAIllegalConfig
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Nov 13 17:41:21 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  3. pkg/test/csrctrl/signer/signer.go

    	currCA, err := s.caProvider.currentCA()
    	if err != nil {
    		return nil, err
    	}
    	der, err := currCA.Sign(x509cr.Raw, authority.PermissiveSigningPolicy{
    		TTL:    requestedLifetime,
    		Usages: usages,
    	})
    	if err != nil {
    		return nil, err
    	}
    
    	_, err = x509.ParseCertificate(der)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 03 18:57:19 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/istio_ca.go

    	workloadCertTTL = env.Register("DEFAULT_WORKLOAD_CERT_TTL",
    		cmd.DefaultWorkloadCertTTL,
    		"The default TTL of issued workload certificates. Applied when the client sets a "+
    			"non-positive TTL in the CSR.")
    
    	maxWorkloadCertTTL = env.Register("MAX_WORKLOAD_CERT_TTL",
    		cmd.DefaultMaxWorkloadCertTTL,
    		"The max TTL of issued workload certificates.")
    
    	SelfSignedCACertTTL = env.Register("CITADEL_SELF_SIGNED_CA_CERT_TTL",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. security/pkg/pki/ra/k8s_ra.go

    func (r *KubernetesRA) Sign(csrPEM []byte, certOpts ca.CertOpts) ([]byte, error) {
    	_, err := preSign(r.raOpts, csrPEM, certOpts.SubjectIDs, certOpts.TTL, certOpts.ForCA)
    	if err != nil {
    		return nil, err
    	}
    	certSigner := certOpts.CertSigner
    
    	return r.kubernetesSign(csrPEM, r.raOpts.CaCertFile, certSigner, certOpts.TTL)
    }
    
    // SignWithCertChain is similar to Sign but returns the leaf cert and the entire cert chain.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 14:34:38 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  6. cluster/images/etcd/migrate/migrate_client.go

    	}
    
    	lease, err := v3client.Lease.Grant(ctx, int64(leaseDuration/time.Second))
    	if err != nil {
    		return fmt.Errorf("error while creating lease: %v", err)
    	}
    	klog.Infof("Lease with TTL: %v created", lease.TTL)
    
    	klog.Infof("Attaching lease to %d entries", len(objectsResp.Kvs))
    	for _, kv := range objectsResp.Kvs {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 15 13:53:06 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  7. pkg/controller/certificates/signer/signer_test.go

    		want              time.Duration
    	}{
    		{
    			name:              "can request shorter duration than TTL",
    			certTTL:           time.Hour,
    			expirationSeconds: csr.DurationToExpirationSeconds(30 * time.Minute),
    			want:              30 * time.Minute,
    		},
    		{
    			name:              "cannot request longer duration than TTL",
    			certTTL:           time.Hour,
    			expirationSeconds: csr.DurationToExpirationSeconds(3 * time.Hour),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 21:12:04 UTC 2022
    - 15K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/aes_extended_nonce.go

    	"crypto/aes"
    	"crypto/sha256"
    	"errors"
    	"fmt"
    	"io"
    	"time"
    
    	"golang.org/x/crypto/hkdf"
    
    	"k8s.io/apiserver/pkg/storage/value"
    	"k8s.io/utils/clock"
    )
    
    const (
    	// cacheTTL is the TTL of KDF cache entries.  We assume that the value.Context.AuthenticatedData
    	// for every call is the etcd storage path of the associated resource, and use that as the primary
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. security/pkg/pki/ra/k8s_ra_test.go

    			}
    			subjectID := spiffe.Identity{TrustDomain: "cluster.local", Namespace: "default", ServiceAccount: "bookinfo-productpage"}.String()
    			certOptions := ca.CertOpts{
    				SubjectIDs: []string{subjectID},
    				TTL:        60 * time.Second, ForCA: false,
    				CertSigner: "kube-apiserver-client",
    			}
    			_, err = ra.SignWithCertChain(csrPEM, certOptions)
    			if (tc.expectedFail && err == nil) || (!tc.expectedFail && err != nil) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 27 00:44:54 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

          LoadingCache<String, Integer> cache,
          CountingRemovalListener<String, Integer> removalListener,
          WatchedCreatorLoader loader,
          FakeTicker ticker,
          String keyPrefix,
          long ttl) {
    
        int shift1 = 10 + VALUE_PREFIX;
        loader.setValuePrefix(shift1);
        // fill with initial data
        for (int i = 0; i < 10; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Aug 05 17:21:46 UTC 2022
    - 18.7K bytes
    - Viewed (0)
Back to top