Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 179 for MainKt (0.13 sec)

  1. pkg/proxy/healthcheck/proxier_health.go

    func (hs *ProxierHealthServer) SyncNode(node *v1.Node) {
    	hs.lock.Lock()
    	defer hs.lock.Unlock()
    
    	if !node.DeletionTimestamp.IsZero() {
    		hs.nodeEligible = false
    		return
    	}
    	for _, taint := range node.Spec.Taints {
    		if taint.Key == ToBeDeletedTaint {
    			hs.nodeEligible = false
    			return
    		}
    	}
    	hs.nodeEligible = true
    }
    
    // NodeEligible returns nodeEligible field of ProxierHealthServer.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 16 10:41:18 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. pkg/kubelet/apis/config/register_test.go

    			reflect.TypeOf(metav1.Duration{}):                 true,
    			reflect.TypeOf(metav1.TypeMeta{}):                 true,
    			reflect.TypeOf(v1.NodeConfigSource{}):             true,
    			reflect.TypeOf(v1.Taint{}):                        true,
    		},
    	}
    
    	if err := componentconfigtesting.VerifyInternalTypePackage(pkginfo); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 16:55:02 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. pkg/apis/core/helper/helpers.go

    // and converts it to the []Taint type in core.
    func GetTaintsFromNodeAnnotations(annotations map[string]string) ([]core.Taint, error) {
    	var taints []core.Taint
    	if len(annotations) > 0 && annotations[core.TaintsAnnotationKey] != "" {
    		err := json.Unmarshal([]byte(annotations[core.TaintsAnnotationKey]), &taints)
    		if err != nil {
    			return []core.Taint{}, err
    		}
    	}
    	return taints, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/reconciler/reconciler.go

    			if err != nil {
    				logger.Error(err, "Failed to get taint specs for node", "node", klog.KRef("", string(attachedVolume.NodeName)))
    			}
    
    			// Check whether volume is still mounted. Skip detach if it is still mounted unless we have
    			// decided to force detach or the node has `node.kubernetes.io/out-of-service` taint.
    			if attachedVolume.MountedByNode && !forceDetach && !hasOutOfServiceTaint {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 21:02:38 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. pilot/pkg/controllers/untaint/nodeuntainter_test.go

    }
    
    func (s *nodeTainterTestServer) addTaintedNodes(t *testing.T, nodes ...string) {
    	t.Helper()
    	for _, node := range nodes {
    		node := generateNode(node, nil)
    		// add our special taint
    		node.Spec.Taints = append(node.Spec.Taints, corev1.Taint{
    			Key:    TaintName,
    			Value:  "true",
    			Effect: corev1.TaintEffectNoSchedule,
    		})
    		s.nc.Create(node)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. pkg/controller/controller_utils.go

    		if err != nil {
    			return err
    		}
    
    		var newNode *v1.Node
    		oldNodeCopy := oldNode
    		updated := false
    		for _, taint := range taints {
    			curNewNode, ok, err := taintutils.AddOrUpdateTaint(oldNodeCopy, taint)
    			if err != nil {
    				return fmt.Errorf("failed to update taint of node")
    			}
    			updated = updated || ok
    			newNode = curNewNode
    			oldNodeCopy = curNewNode
    		}
    		if !updated {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  7. pkg/kubelet/lifecycle/predicate.go

    			reasons = append(reasons, &PredicateFailureError{r.Name, r.Reason})
    		}
    	}
    
    	// Check taint/toleration except for static pods
    	if !types.IsStaticPod(pod) {
    		_, isUntolerated := corev1.FindMatchingUntoleratedTaint(nodeInfo.Node().Spec.Taints, pod.Spec.Tolerations, func(t *v1.Taint) bool {
    			// Kubelet is only interested in the NoExecute taint.
    			return t.Effect == v1.TaintEffectNoExecute
    		})
    		if isUntolerated {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 00:47:50 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  8. pkg/controller/podgc/gc_controller_test.go

    		{
    			name: "some pods have deletion timestamp and/or phase set and some of the corresponding nodes have an" +
    				"outofservice taint that are not ready",
    			nodes: []node{
    				// terminated pods on this node should be force deleted
    				{name: "worker-0", readyCondition: v1.ConditionFalse, taints: []v1.Taint{{Key: v1.TaintNodeOutOfService,
    					Effect: v1.TaintEffectNoExecute}}},
    				// terminated pods on this node should not be force deleted
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 08:16:48 UTC 2024
    - 29K bytes
    - Viewed (0)
  9. pkg/controller/podgc/metrics/metrics.go

    	PodGCReasonTerminated = "terminated"
    	// PodGCReasonCompleted is used when the pod is terminating and the corresponding node
    	// is not ready and has `node.kubernetes.io/out-of-service` taint.
    	PodGCReasonTerminatingOutOfService = "out-of-service"
    	// PodGCReasonOrphaned is used when the pod is orphaned which means the corresponding node
    	// has been deleted.
    	PodGCReasonOrphaned = "orphaned"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 18:06:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. manifests/charts/istio-control/istio-discovery/templates/deployment.yaml

    {{- end}}
    {{- if .Values.global.logAsJson }}
              - --log_as_json
    {{- end }}
              - --domain
              - {{ .Values.global.proxy.clusterDomain }}
    {{- if .Values.pilot.taint.namespace }}
              - --cniNamespace={{ .Values.pilot.taint.namespace }}
    {{- end }}
              - --keepaliveMaxServerConnectionAge
              - "{{ .Values.pilot.keepaliveMaxServerConnectionAge }}"
    {{- if .Values.pilot.extraContainerArgs }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 30 20:24:06 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top