Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for HorizontalPodAutoscaler (0.44 sec)

  1. pkg/printers/internalversion/printers_test.go

    	if err != nil {
    		t.Errorf("unable to parse label selector: %v", err)
    	}
    	tests := []struct {
    		hpa      autoscaling.HorizontalPodAutoscaler
    		expected []metav1.TableRow
    	}{
    		// minReplicas unset
    		{
    			hpa: autoscaling.HorizontalPodAutoscaler{
    				ObjectMeta: metav1.ObjectMeta{Name: "some-hpa"},
    				Spec: autoscaling.HorizontalPodAutoscalerSpec{
    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/podautoscaler/horizontal_test.go

    		handled, obj, err := func() (handled bool, ret *autoscalingv2.HorizontalPodAutoscaler, err error) {
    			tc.Lock()
    			defer tc.Unlock()
    
    			obj := action.(core.UpdateAction).GetObject().(*autoscalingv2.HorizontalPodAutoscaler)
    			assert.Equal(t, namespace, obj.Namespace, "the HPA namespace should be as expected")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  3. pkg/printers/internalversion/printers.go

    	}
    
    	ret := strings.Join(list, ", ")
    	if more {
    		return fmt.Sprintf("%s + %d more...", ret, count-max)
    	}
    	return ret
    }
    
    func printHorizontalPodAutoscaler(obj *autoscaling.HorizontalPodAutoscaler, options printers.GenerateOptions) ([]metav1.TableRow, error) {
    	row := metav1.TableRow{
    		Object: runtime.RawExtension{Object: obj},
    	}
    
    	reference := fmt.Sprintf("%s/%s",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
Back to top