Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for oldpod (0.25 sec)

  1. pkg/kubelet/container/runtime_cache_test.go

    }
    
    func TestForceUpdateIfOlder(t *testing.T) {
    	ctx := context.Background()
    	runtime := &ctest.FakeRuntime{}
    	cache := NewTestRuntimeCache(runtime)
    
    	// Cache old pods.
    	oldpods := []*ctest.FakePod{{Pod: &Pod{ID: "1111"}}}
    	runtime.PodList = oldpods
    	cache.UpdateCacheWithLock()
    
    	// Update the runtime to new pods.
    	newpods := []*ctest.FakePod{{Pod: &Pod{ID: "1111"}}, {Pod: &Pod{ID: "2222"}}, {Pod: &Pod{ID: "3333"}}}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_tidy_indirect.txt

    -- toolow/toolow.go --
    package toolow
    
    import _ "example.net/indirect/oldpkg"
    
    -- indirect.1/go.mod --
    module example.net/indirect
    
    go 1.16
    -- indirect.1/oldpkg/oldpkg.go --
    package oldpkg
    
    
    -- indirect.2/go.mod --
    module example.net/indirect
    
    go 1.16
    -- indirect.2/oldpkg/oldpkg.go --
    package oldpkg
    -- indirect.2/newpkg/newpkg.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 16 13:39:46 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  3. pkg/registry/core/node/strategy_test.go

    			old := tc.oldNode.DeepCopy()
    			// old node  should never be changed
    			if !reflect.DeepEqual(tc.oldNode, old) {
    				t.Errorf("%v: old node changed: %v", tc.name, cmp.Diff(tc.oldNode, old))
    			}
    
    			if !reflect.DeepEqual(tc.node, tc.compareNode) {
    				t.Errorf("%v: unexpected node spec: %v", tc.name, cmp.Diff(tc.node, tc.compareNode))
    			}
    		}()
    	}
    }
    func TestValidateUpdate(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. pkg/registry/core/node/strategy.go

    	newNode := obj.(*api.Node)
    	oldNode := old.(*api.Node)
    	newNode.Status = oldNode.Status
    
    	dropDisabledFields(newNode, oldNode)
    }
    
    func dropDisabledFields(node *api.Node, oldNode *api.Node) {
    	// Nodes allow *all* fields, including status, to be set on create.
    	// for create
    	if oldNode == nil {
    		node.Spec.ConfigSource = nil
    		node.Status.Config = nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:06:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.cc

      if (auto bool_attr = mlir::dyn_cast_or_null<BoolAttr>(attr)) {
        return bool_attr.getValue();
      }
      return std::nullopt;
    }
    
    ShapedType GetNhwcReturnTypeFromNchw(Operation* old_op) {
      auto composite_result_shape =
          mlir::cast<ShapedType>(old_op->getResults().front().getType()).getShape();
      std::array<int64_t, 4> output_shape;
      // NHWC <- NCHW
      output_shape[0] = composite_result_shape[0];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 18:33:05 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. pkg/kubelet/pod/testing/mock_manager.go

    	return m.recorder
    }
    
    // AddPod mocks base method.
    func (m *MockManager) AddPod(pod *v1.Pod) {
    	m.ctrl.T.Helper()
    	m.ctrl.Call(m, "AddPod", pod)
    }
    
    // AddPod indicates an expected call of AddPod.
    func (mr *MockManagerMockRecorder) AddPod(pod any) *gomock.Call {
    	mr.mock.ctrl.T.Helper()
    	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPod", reflect.TypeOf((*MockManager)(nil).AddPod), pod)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. pkg/controller/deployment/recreate.go

    func oldPodsRunning(newRS *apps.ReplicaSet, oldRSs []*apps.ReplicaSet, podMap map[types.UID][]*v1.Pod) bool {
    	if oldPods := util.GetActualReplicaCountForReplicaSets(oldRSs); oldPods > 0 {
    		return true
    	}
    	for rsUID, podList := range podMap {
    		// If the pods belong to the new ReplicaSet, ignore.
    		if newRS != nil && newRS.UID == rsUID {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 13 20:32:13 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  8. pkg/kubelet/prober/testing/fake_manager.go

    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // FakeManager simulates a prober.Manager for testing.
    type FakeManager struct{}
    
    // Unused methods below.
    
    // AddPod simulates adding a Pod.
    func (FakeManager) AddPod(_ *v1.Pod) {}
    
    // RemovePod simulates removing a Pod.
    func (FakeManager) RemovePod(_ *v1.Pod) {}
    
    // Simulated stopping liveness and startup probes.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:12 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. pilot/pkg/controllers/untaint/nodeuntainter_test.go

    		})
    		s.nc.Create(node)
    	}
    }
    
    func (s *nodeTainterTestServer) addCniPod(t *testing.T, node string, markReady bool) {
    	s.addPod(t, node, markReady, cniPodLabels, systemNS)
    }
    
    func (s *nodeTainterTestServer) addPod(t *testing.T, node string, markReady bool, labels map[string]string, ns string) {
    	t.Helper()
    	ip := "1.2.3.4"
    	name := "istio-cni-" + node
    	if ns == "" {
    		ns = systemNS
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. pkg/proxy/node_test.go

    			expectPanic:     true,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			n := &NodePodCIDRHandler{
    				podCIDRs: tt.oldNodePodCIDRs,
    			}
    			oldNode := &v1.Node{}
    			node := &v1.Node{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:            "test-node",
    					ResourceVersion: "1",
    				},
    				Spec: v1.NodeSpec{
    					PodCIDRs: tt.newNodePodCIDRs,
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 10 16:50:29 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top