Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for nodeclient (0.33 sec)

  1. pkg/kubelet/cm/dra/plugin/client.go

    	conn, err := p.getOrCreateGRPCConn()
    	if err != nil {
    		return nil, err
    	}
    
    	ctx, cancel := context.WithTimeout(ctx, p.clientTimeout)
    	defer cancel()
    
    	nodeClient := drapb.NewNodeClient(conn)
    	response, err := nodeClient.NodePrepareResources(ctx, req)
    	logger.V(4).Info(log("done calling NodePrepareResources rpc"), "response", response, "err", err)
    	return response, err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 16:27:05 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_client_test.go

    		client := &csiDriverClient{
    			driverName: "Fake Driver Name",
    			nodeV1ClientCreator: func(addr csiAddr, m *MetricsManager) (csipbv1.NodeClient, io.Closer, error) {
    				nodeClient := fake.NewNodeClient(false /* stagingCapable */)
    				nodeClient.SetNextError(tc.err)
    				nodeClient.SetNodeGetInfoResp(&csipbv1.NodeGetInfoResponse{
    					NodeId:            tc.expectedNodeID,
    					MaxVolumesPerNode: tc.expectedMaxVolumePerNode,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_metrics_test.go

    			driverName: "com.google.gcepd",
    			nodeV1ClientCreator: func(addr csiAddr, m *MetricsManager) (csipbv1.NodeClient, io.Closer, error) {
    				nodeClient := fake.NewNodeClientWithVolumeStats(true /* VolumeStatsCapable */)
    				fakeCloser := fake.NewCloser(t)
    				nodeClient.SetNodeVolumeStatsResp(getRawVolumeInfo())
    				return nodeClient, fakeCloser, nil
    			},
    		}
    		metrics, err := metricsGetter.GetMetrics()
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_block_test.go

    	pubs := csiUnmapper.csiClient.(*fakeCsiDriverClient).nodeClient.GetNodePublishedVolumes()
    	if _, ok := pubs[csiUnmapper.volumeID]; ok {
    		t.Error("csi server may not have received NodeUnpublishVolume call")
    	}
    
    	// ensure csi client call and node unstaged
    	vols := csiUnmapper.csiClient.(*fakeCsiDriverClient).nodeClient.GetNodeStagedVolumes()
    	if _, ok := vols[csiUnmapper.volumeID]; ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_mounter_test.go

    				} else {
    					t.Errorf("SetUp() failed: %v", err)
    				}
    			}
    
    			// ensure call went all the way
    			pubs := csiMounter.csiClient.(*fakeCsiDriverClient).nodeClient.GetNodePublishedVolumes()
    			vol, ok := pubs[csiMounter.volumeID]
    			if !ok {
    				t.Error("csi server may not have received NodePublishVolume call")
    			}
    			if vol.Path != csiMounter.GetPath() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  6. pkg/volume/csi/expander_test.go

    			csClient := setupClientWithExpansion(t, tc.nodeStageSet, tc.nodeExpansion)
    
    			fakeCSIClient, _ := csClient.(*fakeCsiDriverClient)
    			fakeNodeClient := fakeCSIClient.nodeClient
    
    			if tc.enableCSINodeExpandSecret {
    				_, err := plug.host.GetKubeClient().CoreV1().Secrets(tc.secret.Namespace).Create(context.TODO(), tc.secret, metav1.CreateOptions{})
    				if err != nil {
    					t.Fatal(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 03:58:36 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. pkg/volume/csi/nodeinfomanager/nodeinfomanager.go

    	// existing changes are not overwritten.
    
    	kubeClient := nim.volumeHost.GetKubeClient()
    	if kubeClient == nil {
    		return fmt.Errorf("error getting kube client")
    	}
    
    	nodeClient := kubeClient.CoreV1().Nodes()
    	originalNode, err := nodeClient.Get(context.TODO(), string(nim.nodeName), metav1.GetOptions{})
    	if err != nil {
    		return err
    	}
    	node := originalNode.DeepCopy()
    
    	needUpdate := false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_attacher_test.go

    			}
    
    			// Verify call goes through all the way
    			numStaged := 1
    			if !tc.stageUnstageSet {
    				numStaged = 0
    			}
    
    			cdc := csiAttacher.csiClient.(*fakeCsiDriverClient)
    			staged := cdc.nodeClient.GetNodeStagedVolumes()
    			if len(staged) != numStaged {
    				t.Errorf("got wrong number of staged volumes, expecting %v got: %v", numStaged, len(staged))
    			}
    			if tc.stageUnstageSet {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  9. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go

    			Rules: []rbacv1.PolicyRule{
    				rbacv1helpers.NewRule("create").Groups(certificatesGroup).Resources("certificatesigningrequests/nodeclient").RuleOrDie(),
    			},
    		},
    		{
    			// a role making the csrapprover controller approve a node client CSR requested by the node itself
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  10. pilot/pkg/controllers/untaint/nodeuntainter.go

    	kubelib.WaitForCacheSync("node untainer", stop, n.nodesClient.HasSynced, n.podsClient.HasSynced)
    	n.queue.Run(stop)
    	n.podsClient.ShutdownHandlers()
    	n.nodesClient.ShutdownHandlers()
    }
    
    func (n *NodeUntainter) reconcileNode(key types.NamespacedName) error {
    	log.Debugf("reconciling node %s", key.Name)
    	node := n.nodesClient.Get(key.Name, key.Namespace)
    	if node == nil {
    		return nil
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top