Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for NewNode (0.13 sec)

  1. pkg/registry/core/node/storage/storage_test.go

    	test.TestCreate(
    		// valid
    		newNode("foo"),
    		// invalid
    		newNode("_-a123-a_"),
    	)
    }
    
    func TestUpdate(t *testing.T) {
    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store).ClusterScope()
    	test.TestUpdate(
    		// valid
    		newNode("foo"),
    		// updateFunc
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 01 12:49:38 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. pkg/controller/tainteviction/taint_eviction_test.go

    			},
    			oldNode:      testutil.NewNode("node1"),
    			newNode:      addTaintsToNode(testutil.NewNode("node1"), "testTaint1", "taint1", []int{1}),
    			expectDelete: true,
    		},
    		{
    			description: "Added tolerated taint",
    			pods: []corev1.Pod{
    				*addToleration(testutil.NewPod("pod1", "node1"), 1, 100),
    			},
    			oldNode:      testutil.NewNode("node1"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  3. pkg/util/taints/taints.go

    	newNode := node.DeepCopy()
    	nodeTaints := newNode.Spec.Taints
    	if len(nodeTaints) == 0 {
    		return newNode, false, nil
    	}
    
    	if !TaintExists(nodeTaints, taint) {
    		return newNode, false, nil
    	}
    
    	newTaints, _ := DeleteTaint(nodeTaints, taint)
    	newNode.Spec.Taints = newTaints
    	return newNode, true, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 09:23:35 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  4. pkg/registry/core/node/strategy.go

    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (nodeStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	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
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:06:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/multi/list/LinkedList.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class LinkedList {
        private var head: Node? = null
    
        fun add(element: String) {
            val newNode = Node(element)
    
            val it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private fun tail(head: Node?): Node? {
            var it: Node?
    
            it = head
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. pkg/scheduler/eventhandlers.go

    }
    
    func nodeLabelsChanged(newNode *v1.Node, oldNode *v1.Node) bool {
    	return !equality.Semantic.DeepEqual(oldNode.GetLabels(), newNode.GetLabels())
    }
    
    func nodeTaintsChanged(newNode *v1.Node, oldNode *v1.Node) bool {
    	return !equality.Semantic.DeepEqual(newNode.Spec.Taints, oldNode.Spec.Taints)
    }
    
    func nodeConditionsChanged(newNode *v1.Node, oldNode *v1.Node) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:04 UTC 2024
    - 24K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/samples/templates/groovy-list-library/src/main/groovy/org/gradle/sample/list/LinkedList.groovy

    package org.gradle.sample.list
    
    class LinkedList {
        private Node head
    
        void add(String element) {
            Node newNode = new Node(element)
    
            Node it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private static Node tail(Node head) {
            Node it
    
            for (it = head; it != null && it.next != null; it = it.next) {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovyapplication/multi/list/LinkedList.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class LinkedList {
        private Node head
    
        void add(String element) {
            Node newNode = new Node(element)
    
            Node it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private static Node tail(Node head) {
            Node it
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/multi/list/LinkedList.scala.template

    ${fileComment.multilineComment}${packageDecl.statement}
    
    class LinkedList {
        private var head: Node = _
    
        def add(element: String): Unit = {
            val newNode = new Node(element)
    
            val it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private def tail(head: Node) = {
            var it: Node = null
    
            it = head
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. pkg/scheduler/eventhandlers_test.go

    		name       string
    		newNode    *v1.Node
    		oldNode    *v1.Node
    		wantEvents []framework.ClusterEvent
    	}{
    		{
    			name:       "no specific changed applied",
    			newNode:    st.MakeNode().Unschedulable(false).Obj(),
    			oldNode:    st.MakeNode().Unschedulable(false).Obj(),
    			wantEvents: nil,
    		},
    		{
    			name:       "only node spec unavailable changed",
    			newNode:    st.MakeNode().Unschedulable(false).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 10 14:38:54 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top