Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for newBoss (0.21 sec)

  1. pkg/kubelet/pod/pod_manager.go

    func NewBasicPodManager() Manager {
    	pm := &basicManager{}
    	pm.SetPods(nil)
    	return pm
    }
    
    // Set the internal pods based on the new pods.
    func (pm *basicManager) SetPods(newPods []*v1.Pod) {
    	pm.lock.Lock()
    	defer pm.lock.Unlock()
    
    	pm.podByUID = make(map[kubetypes.ResolvedPodUID]*v1.Pod)
    	pm.podByFullName = make(map[string]*v1.Pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:00 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. pkg/kubelet/config/config.go

    	}
    
    	// updatePodFunc is the local function which updates the pod cache *oldPods* with new pods *newPods*.
    	// After updated, new pod will be stored in the pod cache *pods*.
    	// Notice that *pods* and *oldPods* could be the same cache.
    	updatePodsFunc := func(newPods []*v1.Pod, oldPods, pods map[types.UID]*v1.Pod) {
    		filtered := filterInvalidPods(newPods, source, s.recorder)
    		for _, ref := range filtered {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. cni/pkg/install/kubeconfig_test.go

    	}
    	// Write out a kubeconfig with one cert
    	result, err = createKubeConfig(newCfg)
    	if err != nil {
    		t.Fatalf("did not expect failure: %v", err)
    	}
    	goldenNewFilepath := "testdata/kubeconfig-newhost"
    	testutils.CompareContent(t, []byte(result.Full), goldenNewFilepath)
    }
    
    func TestCheckNoExistingKubeConfig(t *testing.T) {
    	tmp := t.TempDir()
    	os.WriteFile(filepath.Join(tmp, "token"), []byte(saToken), 0o644)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. internal/grid/README.md

        }
    	
        // Create a typed handler.
        // Due to current generics limitations, a constructor of the empty type must be provided.
        instance := grid.NewSingleHandler[*grid.MSS, *grid.MSS](h, grid.NewMSS, grid.NewMSS)
    	
        // Register the handler on the manager
        instance.Register(manager, handler)
    	
        // The typed instance is also used for calls
        conn := manager.Connection("host")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. internal/grid/grid_test.go

    	// 1: Echo
    	h1 := NewSingleHandler[*MSS, *MSS](handlerTest, NewMSS, NewMSS)
    	// Handles incoming requests, returns a response
    	handler1 := func(req *MSS) (resp *MSS, err *RemoteErr) {
    		resp = h1.NewResponse()
    		for k, v := range *req {
    			(*resp)[k] = v
    		}
    		return resp, nil
    	}
    	// Return error
    	h2 := NewSingleHandler[*MSS, *MSS](handlerTest2, NewMSS, NewMSS)
    	handler2 := func(req *MSS) (resp *MSS, err *RemoteErr) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  6. internal/grid/types.go

    		return msgp.NilSize
    	}
    	s := msgp.MapHeaderSize
    	for za0001, za0002 := range *m {
    		s += msgp.StringPrefixSize + len(za0001) + msgp.StringPrefixSize + len(za0002)
    	}
    	return s
    }
    
    // NewMSS returns a new MSS.
    func NewMSS() *MSS {
    	m := MSS(mssPool.Get().(map[string]string))
    	for k := range m {
    		delete(m, k)
    	}
    	return &m
    }
    
    // NewMSSWith returns a new MSS with the given map.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 01 23:42:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. cmd/storage-rest-server.go

    	storageReadVersionRPC      = grid.NewSingleHandler[*grid.MSS, *FileInfo](grid.HandlerReadVersion, grid.NewMSS, func() *FileInfo { return &FileInfo{} })
    	storageReadXLRPC           = grid.NewSingleHandler[*grid.MSS, *RawFileInfo](grid.HandlerReadXL, grid.NewMSS, func() *RawFileInfo { return &RawFileInfo{} })
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

              if (!operations->contains(successor) &&
                  !ops_to_avoid.contains(successor)) {
                new_ops.insert(successor);
                operations->insert(successor);
              }
            }
          }
        }
        ops_to_process.swap(new_ops);
        new_ops.clear();
      }
    }
    
    TF::StatefulPartitionedCallOp MakeFuncCaller(mlir::OpBuilder& builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  9. cmd/admin-handlers.go

    		// In distributed setup, anonymized addr = 'poolNum.serverNum'
    		newHost := fmt.Sprintf("pool%d.server%d", poolNum, srvrNum)
    		schemePfx := endpoint.Scheme + "://"
    
    		// Hostname
    		mapIfNotPresent(hostAnonymizer, endpoint.Hostname(), newHost)
    
    		newHostPort := newHost
    		if len(endpoint.Port()) > 0 {
    			// Host + port
    			newHostPort = newHost + ":" + endpoint.Port()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/devicemanager/manager_test.go

    }
    
    type activePodsStub struct {
    	activePods []*v1.Pod
    }
    
    func (a *activePodsStub) getActivePods() []*v1.Pod {
    	return a.activePods
    }
    
    func (a *activePodsStub) updateActivePods(newPods []*v1.Pod) {
    	a.activePods = newPods
    }
    
    type MockEndpoint struct {
    	getPreferredAllocationFunc func(available, mustInclude []string, size int) (*pluginapi.PreferredAllocationResponse, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
Back to top