Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 164 for condition3 (0.43 sec)

  1. pkg/printers/internalversion/printers_test.go

    		if !reflect.DeepEqual(test.expect, rows) {
    			t.Errorf("%d mismatch: %s", i, cmp.Diff(test.expect, rows))
    		}
    	}
    }
    
    func TestPrintPodwide(t *testing.T) {
    	condition1 := "condition1"
    	condition2 := "condition2"
    	condition3 := "condition3"
    	tests := []struct {
    		pod    api.Pod
    		expect []metav1.TableRow
    	}{
    		{
    			// Test when the NodeName and PodIP are not none
    			api.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller_test.go

    				for _, wantCondition := range *tc.wantConditions {
    					conditions := getConditionsByType(actual.Status.Conditions, wantCondition.Type)
    					if len(conditions) != 1 {
    						t.Fatalf("Expected a single completion condition. Got %#v for type: %q", conditions, wantCondition.Type)
    					}
    					condition := *conditions[0]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_node_status_test.go

    		lastIndex := len(updatedNode.Status.Conditions) - 1
    		assert.Equal(t, v1.NodeReady, updatedNode.Status.Conditions[lastIndex].Type, "NodeReady should be the last condition")
    		assert.NotEmpty(t, updatedNode.Status.Conditions[lastIndex].Message)
    
    		updatedNode.Status.Conditions[lastIndex].Message = ""
    		expectedNode.Status.Conditions[lastIndex] = v1.NodeCondition{
    			Type:               v1.NodeReady,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  4. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    	healthyNodeNewStatus := v1.NodeStatus{
    		Conditions: []v1.NodeCondition{
    			{
    				Type:               v1.NodeReady,
    				Status:             v1.ConditionTrue,
    				LastHeartbeatTime:  metav1.NewTime(fakeNow.Add(timeToPass)),
    				LastTransitionTime: fakeNow,
    			},
    		},
    	}
    	unhealthyNodeNewStatus := v1.NodeStatus{
    		Conditions: []v1.NodeCondition{
    			{
    				Type:   v1.NodeReady,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  5. pkg/printers/internalversion/printers.go

    }
    
    func hasPodReadyCondition(conditions []api.PodCondition) bool {
    	for _, condition := range conditions {
    		if condition.Type == api.PodReady && condition.Status == api.ConditionTrue {
    			return true
    		}
    	}
    	return false
    }
    
    func hasJobCondition(conditions []batch.JobCondition, conditionType batch.JobConditionType) bool {
    	for _, condition := range conditions {
    		if condition.Type == conditionType {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  6. pkg/registry/batch/job/strategy_test.go

    			},
    			wantErrs: field.ErrorList{
    				{Type: field.ErrorTypeInvalid, Field: "status.conditions"},
    			},
    		},
    		"invalid removal of terminal condition Complete=True": {
    			enableJobManagedBy: true,
    			job: &batch.Job{
    				ObjectMeta: validObjectMeta,
    				Status: batch.JobStatus{
    					Conditions: []batch.JobCondition{
    						{
    							Type:   batch.JobComplete,
    							Status: api.ConditionTrue,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  7. pkg/controller/daemon/daemon_controller_test.go

    		daemonPods, _ := manager.podLister.Pods(ds.Namespace).List(selector)
    		for _, pod := range daemonPods {
    			condition := v1.PodCondition{Type: v1.PodReady, Status: v1.ConditionTrue}
    			pod.Status.Conditions = append(pod.Status.Conditions, condition)
    		}
    
    		expectSyncDaemonSets(t, manager, ds, podControl, 0, 0, 0)
    		if updated.Status.NumberReady != 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/testdata/swagger.json

              "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions",
              "type": "string"
            },
            "type": {
              "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions",
              "type": "string"
            }
          },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 229.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

    // 4 conditions below are checked to filter out cases where `transpose` and
    // `slice` are required for conversion to `tfl.gather_nd`.
    // Condition 1 - `start_index_map` should be an increasing sequence starting
    // from 0 with step 1.
    // Condition 2 - `index_vector_dim` should be the last dimension of
    // `start_indices`.
    // Condition 3 - `offset_dims` should be the last dimensions of `output`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_pods.go

    	s.Conditions = append(s.Conditions, status.GeneratePodReadyCondition(&pod.Spec, s.Conditions, allContainerStatuses, s.Phase))
    	s.Conditions = append(s.Conditions, status.GenerateContainersReadyCondition(&pod.Spec, allContainerStatuses, s.Phase))
    	s.Conditions = append(s.Conditions, v1.PodCondition{
    		Type:   v1.PodScheduled,
    		Status: v1.ConditionTrue,
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top