Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewPoolFromBytes (1.57 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go

    func validateCertificateAuthority(certificateAuthority string, fldPath *field.Path) field.ErrorList {
    	var allErrs field.ErrorList
    
    	if len(certificateAuthority) == 0 {
    		return allErrs
    	}
    	_, err := cert.NewPoolFromBytes([]byte(certificateAuthority))
    	if err != nil {
    		allErrs = append(allErrs, field.Invalid(fldPath, "<omitted>", err.Error()))
    	}
    
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc.go

    	client := opts.Client
    
    	if client == nil {
    		var roots *x509.CertPool
    		var err error
    		if opts.CAContentProvider != nil {
    			// TODO(enj): make this reload CA data dynamically
    			roots, err = certutil.NewPoolFromBytes(opts.CAContentProvider.CurrentCABundleContent())
    			if err != nil {
    				return nil, fmt.Errorf("Failed to read the CA contents: %v", err)
    			}
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top