Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsCertificateRequestApproved (3.29 sec)

  1. pkg/test/csrctrl/controllers/csr_controller.go

    	s.queue.Run(stop)
    }
    
    func (s *Signer) HasSynced() bool {
    	return s.queue.HasSynced()
    }
    
    // isCertificateRequestApproved returns true if a certificate request has the
    // "Approved" condition and no "Denied" conditions; false otherwise.
    func isCertificateRequestApproved(csr *certv1.CertificateSigningRequest) bool {
    	approved, denied := getCertApprovalCondition(&csr.Status)
    	return approved && !denied
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. pkg/controller/certificates/signer/signer.go

    	}
    	return ret, nil
    }
    
    func (s *signer) handle(ctx context.Context, csr *capi.CertificateSigningRequest) error {
    	// Ignore unapproved or failed requests
    	if !certificates.IsCertificateRequestApproved(csr) || certificates.HasTrueCondition(csr, capi.CertificateFailed) {
    		return nil
    	}
    
    	// Fast-path to avoid any additional processing if the CSRs signerName does not match
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 15 03:26:08 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top