Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for verifyActions (0.19 sec)

  1. pkg/kubelet/status/status_manager_test.go

    	})
    	syncer.SetPodStatus(getTestPod(), getRandomPodStatus())
    	verifyActions(t, syncer, []core.Action{getAction()})
    }
    
    func TestSyncPod(t *testing.T) {
    	syncer := newTestManager(&fake.Clientset{})
    	testPod := getTestPod()
    	syncer.kubeClient = fake.NewSimpleClientset(testPod)
    	syncer.SetPodStatus(testPod, getRandomPodStatus())
    	verifyActions(t, syncer, []core.Action{getAction(), patchAction()})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    			test.mutatePodFn(pod)
    		}
    		if test.mutateStatusFn != nil {
    			test.mutateStatusFn(status)
    		}
    		ctx := context.Background()
    		actions := m.computePodActions(ctx, pod, status)
    		verifyActions(t, &test.actions, &actions, desc)
    		if test.resetStatusFn != nil {
    			test.resetStatusFn(status)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_cafile_content.go

    	return c.caBundle.Load().(*caBundleAndVerifier).caBundle
    }
    
    // VerifyOptions provides verifyoptions compatible with authenticators
    func (c *DynamicFileCAContent) VerifyOptions() (x509.VerifyOptions, bool) {
    	uncastObj := c.caBundle.Load()
    	if uncastObj == nil {
    		return x509.VerifyOptions{}, false
    	}
    
    	return uncastObj.(*caBundleAndVerifier).verifyOptions, true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/configmap_cafile_content.go

    	}
    
    	return c.caBundle.Load().(*caBundleAndVerifier).caBundle
    }
    
    // VerifyOptions provides verifyoptions compatible with authenticators
    func (c *ConfigMapCAController) VerifyOptions() (x509.VerifyOptions, bool) {
    	uncastObj := c.caBundle.Load()
    	if uncastObj == nil {
    		// This can happen if we've been unable load data from the apiserver for some reason.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go

    		},
    
    		"future cert": {
    			Opts: x509.VerifyOptions{
    				CurrentTime: time.Now().Add(time.Duration(-100 * time.Hour * 24 * 365)),
    				Roots:       getRootCertPool(t),
    			},
    			Certs: getCerts(t, clientCNCert),
    			User:  CommonNameUserConversion,
    
    			ExpectOK:  false,
    			ExpectErr: true,
    		},
    		"expired cert": {
    			Opts: x509.VerifyOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 23:23:03 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  6. src/crypto/x509/verify.go

    // verified. Platform-specific verification needs the ASN.1 contents.
    var errNotParsed = errors.New("x509: missing ASN.1 contents; use ParseCertificate")
    
    // VerifyOptions contains parameters for Certificate.Verify.
    type VerifyOptions struct {
    	// DNSName, if set, is checked against the leaf certificate with
    	// Certificate.VerifyHostname or the platform verifier.
    	DNSName string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  7. src/crypto/x509/verify_test.go

    	if block == nil {
    		return nil, errors.New("failed to decode PEM")
    	}
    	return ParseCertificate(block.Bytes)
    }
    
    func testVerify(t *testing.T, test verifyTest, useSystemRoots bool) {
    	opts := VerifyOptions{
    		Intermediates: NewCertPool(),
    		DNSName:       test.dnsName,
    		CurrentTime:   time.Unix(test.currentTime, 0),
    		KeyUsages:     test.keyUsages,
    	}
    
    	if !useSystemRoots {
    		opts.Roots = NewCertPool()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    	intermediatePool := x509.NewCertPool()
    	for _, c := range intermediates {
    		intermediatePool.AddCert(c)
    	}
    
    	verifyOptions := x509.VerifyOptions{
    		Roots:         rootPool,
    		Intermediates: intermediatePool,
    		KeyUsages:     []x509.ExtKeyUsage{x509.ExtKeyUsageAny},
    	}
    
    	if _, err := cert.Verify(verifyOptions); err != nil {
    		return err
    	}
    
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  9. security/pkg/k8s/chiron/utils.go

    	}
    	intermediates := x509.NewCertPool()
    	if len(certsParsed) > 1 {
    		for _, cert := range certsParsed[1:] {
    			intermediates.AddCert(cert)
    		}
    	}
    	_, err = certsParsed[0].Verify(x509.VerifyOptions{
    		Roots:         roots,
    		Intermediates: intermediates,
    	})
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to verify the certificate chain: %v", err)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 18:11:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/certs/certlist_test.go

    	daughterCert, _ := parseCertAndKey(filepath.Join(dir, "test-daughter"), t)
    
    	pool := x509.NewCertPool()
    	pool.AddCert(caCert)
    
    	_, err = daughterCert.Verify(x509.VerifyOptions{
    		DNSName:   "test-domain.space",
    		Roots:     pool,
    		KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    	})
    	if err != nil {
    		t.Errorf("couldn't verify daughter cert: %v", err)
    	}
    
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top