Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 596 for tints (4.26 sec)

  1. hack/verify-golangci-lint.sh

            echo >&2
            usage
          fi
          ;;
        s)
          golangci_config="${KUBE_ROOT}/hack/golangci-strict.yaml"
          strict=1
          ;;
        n)
          golangci_config="${KUBE_ROOT}/hack/golangci-hints.yaml"
          hints=1
          ;;
        g)
          githubactions="${OPTARG}"
          ;;
        c)
          if [ "${OPTARG}" = "none" ]; then
            golangci_config=""
          else
            golangci_config="${OPTARG}"
          fi
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/identity.go

    		return false
    	}
    	if t1.obj != nil || t2.obj != nil {
    		if flags&identStrict == 0 && (t1.HasShape() || t2.HasShape()) {
    			switch t1.kind {
    			case TINT8, TUINT8, TINT16, TUINT16, TINT32, TUINT32, TINT64, TUINT64, TINT, TUINT, TUINTPTR, TCOMPLEX64, TCOMPLEX128, TFLOAT32, TFLOAT64, TBOOL, TSTRING, TPTR, TUNSAFEPTR:
    				return true
    			}
    			// fall through to unnamed type comparison for complex types.
    			goto cont
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 20:57:01 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. pkg/util/taints/taints_test.go

    		}
    		if !reflect.DeepEqual(newNode.Spec.Taints, c.expectedTaints) {
    			t.Errorf("[%s] the new node object should have taints %v, but got: %v", c.name, c.expectedTaints, newNode.Spec.Taints)
    		}
    	}
    }
    
    func TestDeleteTaint(t *testing.T) {
    	cases := []struct {
    		name           string
    		taints         []v1.Taint
    		taintToDelete  *v1.Taint
    		expectedTaints []v1.Taint
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 09:23:35 UTC 2022
    - 22.6K bytes
    - Viewed (0)
  4. tests/integration/ambient/untaint/main_test.go

    		// TODO: log
    		return
    	}
    
    	for _, node := range nodes.Items {
    		var taints []corev1.Taint
    		for _, taint := range node.Spec.Taints {
    			if taint.Key == "cni.istio.io/not-ready" {
    				continue
    			}
    			taints = append(taints, taint)
    		}
    		if len(taints) != len(node.Spec.Taints) {
    			node.Spec.Taints = taints
    			_, err := nodeC.Update(context.TODO(), &node, metav1.UpdateOptions{})
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 14:58:41 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/markcontrolplane/markcontrolplane.go

    	for _, label := range labelsToAdd {
    		n.ObjectMeta.Labels[label] = ""
    	}
    
    	for _, nt := range n.Spec.Taints {
    		if !taintExists(nt, taints) {
    			taints = append(taints, nt)
    		}
    	}
    
    	n.Spec.Taints = taints
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 13 15:45:54 UTC 2022
    - 2K bytes
    - Viewed (0)
  6. pkg/controller/tainteviction/taint_eviction.go

    	taints := getNoExecuteTaints(node.Spec.Taints)
    	func() {
    		tc.taintedNodesLock.Lock()
    		defer tc.taintedNodesLock.Unlock()
    		logger.V(4).Info("Updating known taints on node", "node", klog.KObj(node), "taints", taints)
    		if len(taints) == 0 {
    			delete(tc.taintedNodes, node.Name)
    		} else {
    			tc.taintedNodes[node.Name] = taints
    		}
    	}()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/config/initconfiguration_test.go

    			}
    
    			if tc.expectedTaintCnt != len(cfg.NodeRegistration.Taints) {
    				t.Fatalf("unexpected taints count\nexpected: %d\ngot: %d\ntaints: %v", tc.expectedTaintCnt, len(cfg.NodeRegistration.Taints), cfg.NodeRegistration.Taints)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 09:17:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.contains(ARRAY234, (int) 3)).isTrue();
        assertThat(Ints.contains(ARRAY234, (int) 4)).isTrue();
      }
    
      public void testIndexOf() {
        assertThat(Ints.indexOf(EMPTY, (int) 1)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY1, (int) 2)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY234, (int) 1)).isEqualTo(-1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.contains(ARRAY234, (int) 3)).isTrue();
        assertThat(Ints.contains(ARRAY234, (int) 4)).isTrue();
      }
    
      public void testIndexOf() {
        assertThat(Ints.indexOf(EMPTY, (int) 1)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY1, (int) 2)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY234, (int) 1)).isEqualTo(-1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  10. pilot/pkg/controllers/untaint/nodeuntainter.go

    	return nil
    }
    
    // deleteTaint removes all the taints that have the same key and effect to given taintToDelete.
    func deleteTaint(taints []v1.Taint) []v1.Taint {
    	newTaints := []v1.Taint{}
    	for i := range taints {
    		if taints[i].Key == TaintName {
    			continue
    		}
    		newTaints = append(newTaints, taints[i])
    	}
    	return newTaints
    }
    
    func hasTaint(n *v1.Node) bool {
    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