Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 96 for scaleTargetRef (0.19 sec)

  1. operator/pkg/compare/compare_test.go

      - resource:
          name: cpu
          target:
            type: Utilization
            averageUtilization: 80
        type: Resource
      minReplicas: 1
      scaleTargetRef:
        apiVersion: apps/v1
        kind: Deployment
        name: istio-ingressgateway`,
    			want: `spec:
      scaleTargetRef:
        name: ingressgateway -> istio-ingressgateway
    `,
    		},
    		{
    			desc: "arrays with same items",
    			a: `apiVersion: autoscaling/v2
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 21 02:18:20 UTC 2022
    - 33K bytes
    - Viewed (0)
  2. pkg/apis/autoscaling/validation/validation.go

    		allErrs = append(allErrs, field.Invalid(fldPath.Child("maxReplicas"), autoscaler.MaxReplicas, "must be greater than or equal to `minReplicas`"))
    	}
    	if refErrs := ValidateCrossVersionObjectReference(autoscaler.ScaleTargetRef, fldPath.Child("scaleTargetRef")); len(refErrs) > 0 {
    		allErrs = append(allErrs, refErrs...)
    	}
    	if refErrs := validateMetrics(autoscaler.Metrics, fldPath.Child("metrics"), autoscaler.MinReplicas); len(refErrs) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 25 00:58:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. pkg/printers/internalversion/printers_test.go

    	}{
    		// minReplicas unset
    		{
    			hpa: autoscaling.HorizontalPodAutoscaler{
    				ObjectMeta: metav1.ObjectMeta{Name: "some-hpa"},
    				Spec: autoscaling.HorizontalPodAutoscalerSpec{
    					ScaleTargetRef: autoscaling.CrossVersionObjectReference{
    						Name: "some-rc",
    						Kind: "ReplicationController",
    					},
    					MaxReplicas: 10,
    				},
    				Status: autoscaling.HorizontalPodAutoscalerStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  4. pkg/apis/autoscaling/v2/zz_generated.conversion.go

    	if err := Convert_v2_CrossVersionObjectReference_To_autoscaling_CrossVersionObjectReference(&in.ScaleTargetRef, &out.ScaleTargetRef, s); err != nil {
    		return err
    	}
    	out.MinReplicas = (*int32)(unsafe.Pointer(in.MinReplicas))
    	out.MaxReplicas = in.MaxReplicas
    	if in.Metrics != nil {
    		in, out := &in.Metrics, &out.Metrics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 09 02:34:54 UTC 2021
    - 58.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/autoscaling/v2beta2/zz_generated.deepcopy.go

    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) {
    	*out = *in
    	out.ScaleTargetRef = in.ScaleTargetRef
    	if in.MinReplicas != nil {
    		in, out := &in.MinReplicas, &out.MinReplicas
    		*out = new(int32)
    		**out = **in
    	}
    	if in.Metrics != nil {
    		in, out := &in.Metrics, &out.Metrics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/autoscaling/v2/zz_generated.deepcopy.go

    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) {
    	*out = *in
    	out.ScaleTargetRef = in.ScaleTargetRef
    	if in.MinReplicas != nil {
    		in, out := &in.MinReplicas, &out.MinReplicas
    		*out = new(int32)
    		**out = **in
    	}
    	if in.Metrics != nil {
    		in, out := &in.Metrics, &out.Metrics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 09 02:34:54 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  7. pkg/apis/autoscaling/v2beta2/zz_generated.conversion.go

    	if err := Convert_v2beta2_CrossVersionObjectReference_To_autoscaling_CrossVersionObjectReference(&in.ScaleTargetRef, &out.ScaleTargetRef, s); err != nil {
    		return err
    	}
    	out.MinReplicas = (*int32)(unsafe.Pointer(in.MinReplicas))
    	out.MaxReplicas = in.MaxReplicas
    	if in.Metrics != nil {
    		in, out := &in.Metrics, &out.Metrics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 60.9K bytes
    - Viewed (0)
  8. pkg/apis/autoscaling/zz_generated.deepcopy.go

    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) {
    	*out = *in
    	out.ScaleTargetRef = in.ScaleTargetRef
    	if in.MinReplicas != nil {
    		in, out := &in.MinReplicas, &out.MinReplicas
    		*out = new(int32)
    		**out = **in
    	}
    	if in.Metrics != nil {
    		in, out := &in.Metrics, &out.Metrics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 19.4K bytes
    - Viewed (0)
  9. pkg/controller/podautoscaler/horizontal.go

    	hpa := hpaShared.DeepCopy()
    	hpaStatusOriginal := hpa.Status.DeepCopy()
    
    	reference := fmt.Sprintf("%s/%s/%s", hpa.Spec.ScaleTargetRef.Kind, hpa.Namespace, hpa.Spec.ScaleTargetRef.Name)
    
    	targetGV, err := schema.ParseGroupVersion(hpa.Spec.ScaleTargetRef.APIVersion)
    	if err != nil {
    		a.eventRecorder.Event(hpa, v1.EventTypeWarning, "FailedGetScale", err.Error())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/autoscaling/v1/types.go

    	// reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
    	// and will set the desired number of pods by using its Scale subresource.
    	ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef" protobuf:"bytes,1,opt,name=scaleTargetRef"`
    	// minReplicas is the lower limit for the number of replicas to which the autoscaler
    	// can scale down.  It defaults to 1 pod.  minReplicas is allowed to be 0 if the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top