Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 193 for cpsr (0.18 sec)

  1. cmd/kubelet/app/server_bootstrap_test.go

    		csr, err := getCSR(req)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if csr.Name == "" {
    			csr.Name = "test-csr"
    		}
    
    		csr.UID = types.UID("1")
    		csr.ResourceVersion = "1"
    		data := mustMarshal(csr)
    		w.Header().Set("Content-Type", "application/json")
    		w.Write(data)
    
    		csr = csr.DeepCopy()
    		csr.ResourceVersion = "2"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  2. pkg/controller/certificates/signer/signer_test.go

    		name string
    		// parameters to be set on the generated CSR
    		commonName string
    		dnsNames   []string
    		org        []string
    		usages     []capi.KeyUsage
    		// whether the generated CSR should be marked as approved
    		approved bool
    		// whether the generated CSR should be marked as failed
    		failed bool
    		// the signerName to be set on the generated CSR
    		signerName string
    		// if true, expect an error to be returned
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 21:12:04 UTC 2022
    - 15K bytes
    - Viewed (0)
  3. pkg/controller/certificates/certificate_controller_test.go

    	handler := func(ctx context.Context, csr *certificates.CertificateSigningRequest) error {
    		csr.Status.Conditions = append(csr.Status.Conditions, certificates.CertificateSigningRequestCondition{
    			Type:    certificates.CertificateApproved,
    			Reason:  "test reason",
    			Message: "test message",
    		})
    		_, err := client.CertificatesV1().CertificateSigningRequests().UpdateApproval(context.TODO(), csr.Name, csr, metav1.UpdateOptions{})
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 15 03:26:08 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. tools/certs/Makefile.selfsigned.mk

    .SUFFIXES: .csr .pem .conf
    .PRECIOUS: %/ca-key.pem %/ca-cert.pem %/cert-chain.pem
    .PRECIOUS: %/workload-cert.pem %/key.pem %/workload-cert-chain.pem
    .SECONDARY: root-cert.csr root-ca.conf %/cluster-ca.csr %/intermediate.conf
    
    .DEFAULT_GOAL := help
    
    SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
    
    include $(SELF_DIR)common.mk
    
    #------------------------------------------------------------------------
    ##help:		print this help message
    .PHONY: help
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 28 19:49:09 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  5. pkg/apis/certificates/v1beta1/defaults_test.go

    	strPtr := func(s string) *string { return &s }
    	tests := map[string]struct {
    		csr                capi.CertificateSigningRequestSpec
    		expectedSignerName string
    		expectedUsages     []capi.KeyUsage
    	}{
    		"defaults to legacy-unknown if request is not a CSR": {
    			csr: capi.CertificateSigningRequestSpec{
    				Request: []byte("invalid data"),
    				Usages:  kubeletServerUsages,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 16.9K bytes
    - Viewed (0)
  6. pkg/controller/certificates/signer/signer.go

    	if err != nil {
    		return fmt.Errorf("unable to parse csr %q: %v", csr.Name, err)
    	}
    	if recognized, err := s.isRequestForSignerFn(x509cr, csr.Spec.Usages, csr.Spec.SignerName); err != nil {
    		csr.Status.Conditions = append(csr.Status.Conditions, capi.CertificateSigningRequestCondition{
    			Type:           capi.CertificateFailed,
    			Status:         v1.ConditionTrue,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 15 03:26:08 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. pkg/apis/certificates/validation/validation.go

    	}
    	if csr.Spec.ExpirationSeconds != nil && *csr.Spec.ExpirationSeconds < 600 {
    		allErrs = append(allErrs, field.Invalid(specPath.Child("expirationSeconds"), *csr.Spec.ExpirationSeconds, "may not specify a duration less than 600 seconds (10 minutes)"))
    	}
    	allErrs = append(allErrs, validateConditions(field.NewPath("status", "conditions"), csr, opts)...)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  8. pkg/controller/certificates/approver/sarapprove_test.go

    				if got, expected := a.Subresource, "approval"; got != expected {
    					t.Errorf("got: %v, expected: %v", got, expected)
    				}
    				csr := a.Object.(*capi.CertificateSigningRequest)
    				if len(csr.Status.Conditions) != 1 {
    					t.Errorf("expected CSR to have approved condition: %#v", csr)
    				}
    				c := csr.Status.Conditions[0]
    				if got, expected := c.Type, capi.CertificateApproved; got != expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 21:12:04 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  9. tests/integration/security/sds_ingress/util/generate_certs.sh

    openssl req -new -key "${WD}/clientA.key" -out "${WD}/clientA.csr" -subj "/CN=*.example.com" -config "${WD}/client.conf"
    openssl x509 -req -days 3650 -CA "${WD}/rootA.crt" -CAkey "${WD}/rootA.key" -set_serial 0 -in "${WD}/clientA.csr" -out "${WD}/clientA.crt" -extensions v3_req -extfile "${WD}/client.conf"
    
    openssl genrsa -out "${WD}/serverA.key" 2048
    openssl req -new -key "${WD}/serverA.key" -out "${WD}/serverA.csr" -subj "/CN=*.example.com" -config "${WD}/server.conf"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 05 22:01:21 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. cmd/kube-controller-manager/app/certificates.go

    	if missingSingleSigningFile && !anySpecificFilesSet(controllerContext.ComponentConfig.CSRSigningController) {
    		logger.Info("Skipping CSR signer controller because no csr cert/key was specified")
    		return nil, false, nil
    	}
    	if !missingSingleSigningFile && anySpecificFilesSet(controllerContext.ComponentConfig.CSRSigningController) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 11:28:02 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top