Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for configCertAndKey (0.13 sec)

  1. cmd/kubeadm/app/preflight/checks_test.go

    				KeyFile:  keyFile.Name(),
    			},
    		},
    	}
    
    	config, err := c.configCertAndKey(nil)
    	if err != nil {
    		t.Errorf(
    			"failed configCertAndKey:\n\texpected: has no error\n\tactual:%v",
    			err,
    		)
    	}
    	if config.Certificates == nil {
    		t.Errorf(
    			"failed configCertAndKey:\n\texpected: Certificates not equal to nil\n\tactual:%v",
    			config.Certificates,
    		)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/preflight/checks.go

    		if config == nil {
    			config = &tls.Config{}
    		}
    		config.RootCAs = CACertPool
    	}
    	return config, nil
    }
    
    // configCertAndKey configures and returns a reference to tls.Config instance if CertFile and KeyFile pair is provided
    func (evc ExternalEtcdVersionCheck) configCertAndKey(config *tls.Config) (*tls.Config, error) {
    	var cert tls.Certificate
    	if evc.Etcd.External.CertFile != "" && evc.Etcd.External.KeyFile != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:20:55 UTC 2024
    - 39.5K bytes
    - Viewed (0)
Back to top