Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for cacertPath (0.16 sec)

  1. cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go

    func fuzzJoinConfiguration(obj *kubeadm.JoinConfiguration, c fuzz.Continue) {
    	c.FuzzNoCustom(obj)
    
    	// Pinning values for fields that get defaults if fuzz value is empty string or nil (thus making the round trip test fail)
    	obj.CACertPath = "foo"
    	obj.Discovery = kubeadm.Discovery{
    		BootstrapToken:    &kubeadm.BootstrapTokenDiscovery{Token: "baz"},
    		TLSBootstrapToken: "qux",
    		Timeout:           &metav1.Duration{Duration: constants.DiscoveryTimeout},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 06:41:07 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/apis/kubeadm/validation/validation_test.go

    	var tests = []struct {
    		s        *kubeadmapi.JoinConfiguration
    		expected bool
    	}{
    		{&kubeadmapi.JoinConfiguration{}, false},
    		{&kubeadmapi.JoinConfiguration{
    			CACertPath: "/some/cert.crt",
    			Discovery: kubeadmapi.Discovery{
    				BootstrapToken: &kubeadmapi.BootstrapTokenDiscovery{
    					Token: "abcdef.1234567890123456@foobar",
    				},
    				File: &kubeadmapi.FileDiscovery{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/apis/kubeadm/validation/validation.go

    	allErrs = append(allErrs, ValidateJoinControlPlane(c.ControlPlane, field.NewPath("controlPlane"))...)
    
    	if !isAbs(c.CACertPath) || !strings.HasSuffix(c.CACertPath, ".crt") {
    		allErrs = append(allErrs, field.Invalid(field.NewPath("caCertPath"), c.CACertPath, "the ca certificate path must be an absolute path"))
    	}
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/apis/kubeadm/v1beta4/types.go

    	// +optional
    	NodeRegistration NodeRegistrationOptions `json:"nodeRegistration,omitempty"`
    
    	// CACertPath is the path to the SSL certificate authority used to
    	// secure comunications between node and control-plane.
    	// Defaults to "/etc/kubernetes/pki/ca.crt".
    	// +optional
    	CACertPath string `json:"caCertPath,omitempty"`
    
    	// Discovery specifies the options for the kubelet to use during the TLS Bootstrap process
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:12:52 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/apis/kubeadm/v1beta4/zz_generated.conversion.go

    	out.DryRun = in.DryRun
    	if err := Convert_v1beta4_NodeRegistrationOptions_To_kubeadm_NodeRegistrationOptions(&in.NodeRegistration, &out.NodeRegistration, s); err != nil {
    		return err
    	}
    	out.CACertPath = in.CACertPath
    	if err := Convert_v1beta4_Discovery_To_kubeadm_Discovery(&in.Discovery, &out.Discovery, s); err != nil {
    		return err
    	}
    	out.ControlPlane = (*kubeadm.JoinControlPlane)(unsafe.Pointer(in.ControlPlane))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/join/kubelet.go

    	// Write the ca certificate to disk so kubelet can use it for authentication
    	cluster := tlsBootstrapCfg.Contexts[tlsBootstrapCfg.CurrentContext].Cluster
    
    	// If we're dry-running, write ca cert in tmp
    	caPath := cfg.CACertPath
    	if data.DryRun() {
    		caPath = filepath.Join(data.CertificateWriteDir(), kubeadmconstants.CACertName)
    	}
    
    	if _, err := os.Stat(caPath); os.IsNotExist(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/apis/kubeadm/types.go

    	NodeRegistration NodeRegistrationOptions
    
    	// CACertPath is the path to the SSL certificate authority used to
    	// secure comunications between node and control-plane.
    	// Defaults to "/etc/kubernetes/pki/ca.crt".
    	CACertPath string
    
    	// Discovery specifies the options for the kubelet to use during the TLS Bootstrap process
    	Discovery Discovery
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:12:52 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/preflight/checks.go

    	}
    	checks = addCommonChecks(execer, "", &cfg.NodeRegistration, checks)
    	if cfg.ControlPlane == nil {
    		checks = append(checks, FileAvailableCheck{Path: cfg.CACertPath})
    	}
    
    	if cfg.Discovery.BootstrapToken != nil {
    		ipstr, _, err := net.SplitHostPort(cfg.Discovery.BootstrapToken.APIServerEndpoint)
    		if err == nil {
    			checks = append(checks,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:20:55 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/init/certs.go

    			caCertData, err := pkiutil.TryLoadCertFromDisk(data.CertificateDir(), caCert.BaseName)
    			if err != nil {
    				return errors.Wrapf(err, "couldn't load CA certificate %s", caCert.Name)
    			}
    
    			certsphase.CheckCertificatePeriodValidity(caCert.BaseName, caCertData)
    
    			if err := pkiutil.VerifyCertChain(certData, intermediates, caCertData); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 06:35:45 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top