Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetKubeletKubeConfigPath (0.21 sec)

  1. cmd/kubeadm/app/constants/constants_test.go

    			expected,
    			actual,
    		)
    	}
    }
    
    func TestGetKubeletKubeConfigPath(t *testing.T) {
    	expected := filepath.FromSlash("/etc/kubernetes/kubelet.conf")
    	actual := GetKubeletKubeConfigPath()
    
    	if actual != expected {
    		t.Errorf(
    			"failed GetKubeletKubeConfigPath:\n\texpected: %s\n\t  actual: %s",
    			expected,
    			actual,
    		)
    	}
    }
    
    func TestGetStaticPodFilepath(t *testing.T) {
    	var tests = []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 03:26:36 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/phases/join/kubelet.go

    		fmt.Printf(kubeadmJoinFailMsg, err)
    		return err
    	}
    
    	// When we know the /etc/kubernetes/kubelet.conf file is available, get the client
    	client, err := kubeconfigutil.ClientSetFromFile(kubeadmconstants.GetKubeletKubeConfigPath())
    	if err != nil {
    		return err
    	}
    
    	klog.V(1).Infoln("[kubelet-start] preserving the crisocket information for the node")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/upgrade/node.go

    		isControlPlaneNode = false
    	}
    	if len(nodeOptions.kubeConfigPath) == 0 {
    		// Update the kubeconfig path depending on whether this is a control plane node or not.
    		nodeOptions.kubeConfigPath = constants.GetKubeletKubeConfigPath()
    		if isControlPlaneNode {
    			nodeOptions.kubeConfigPath = constants.GetAdminKubeConfigPath()
    		}
    	}
    
    	externalCfg := &v1beta4.UpgradeConfiguration{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/constants/constants.go

    func GetAdminKubeConfigPath() string {
    	return filepath.Join(KubernetesDir, AdminKubeConfigFileName)
    }
    
    // GetKubeletKubeConfigPath returns the location on the disk where kubelet kubeconfig is located by default
    func GetKubeletKubeConfigPath() string {
    	return filepath.Join(KubernetesDir, KubeletKubeConfigFileName)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 03:36:35 UTC 2024
    - 32.4K bytes
    - Viewed (0)
Back to top