Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetNodeName (0.13 sec)

  1. pkg/volume/csi/csi_mounter_test.go

    	testAccount = "test-service-account"
    )
    
    func prepareVolumeInfoFile(mountPath string, plug *csiPlugin, specVolumeName, volumeID, driverName, lifecycleMode, seLinuxMountContext string) error {
    	nodeName := string(plug.host.GetNodeName())
    	volData := map[string]string{
    		volDataKey.specVolID:           specVolumeName,
    		volDataKey.volHandle:           volumeID,
    		volDataKey.driverName:          driverName,
    		volDataKey.nodeName:            nodeName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  2. cmd/kubelet/app/server.go

    	clientConfig.QPS = float32(s.KubeAPIQPS)
    	clientConfig.Burst = int(s.KubeAPIBurst)
    }
    
    // getNodeName returns the node name according to the cloud provider
    // if cloud provider is specified. Otherwise, returns the hostname of the node.
    func getNodeName(cloud cloudprovider.Interface, hostname string) (types.NodeName, error) {
    	if cloud == nil {
    		return types.NodeName(hostname), nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher_test.go

    			}
    
    			if tc.deviceMountPath != "" {
    				tc.deviceMountPath = filepath.Join(tmpDir, tc.deviceMountPath)
    			}
    
    			nodeName := string(csiAttacher.plugin.host.GetNodeName())
    			attachID := getAttachmentName(tc.volName, testDriver, nodeName)
    
    			if tc.createAttachment {
    				// Set up volume attachment
    				attachment := makeTestAttachment(attachID, nodeName, pvName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
Back to top