Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getCondition (0.11 sec)

  1. pkg/controller/replicaset/replica_set_test.go

    		{
    			name: "condition does not exist",
    
    			status:   *exampleStatus,
    			condType: imagePullBackOff,
    
    			expected: false,
    		},
    	}
    
    	for _, test := range tests {
    		cond := GetCondition(test.status, test.condType)
    		exists := cond != nil
    		if exists != test.expected {
    			t.Errorf("%s: expected condition to exist: %t, got: %t", test.name, test.expected, exists)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  2. pkg/controller/podautoscaler/horizontal.go

    	if invalidMetricsCount >= len(metricSpecs) || (invalidMetricsCount > 0 && replicas < specReplicas) {
    		setCondition(hpa, invalidMetricCondition.Type, invalidMetricCondition.Status, invalidMetricCondition.Reason, invalidMetricCondition.Message)
    		return -1, "", statuses, time.Time{}, invalidMetricError
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
Back to top