Skip to content

Commit c000e41

Browse files
committed
fix: make minReplicas required
1 parent 3089119 commit c000e41

7 files changed

Lines changed: 21 additions & 1 deletion

File tree

api/v1alpha1/scale.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package v1alpha1
22

33
type Scale struct {
4-
MinReplicas int32 `json:"minReplicas,omitempty" protobuf:"varint,1,opt,name=minReplicas"`
4+
MinReplicas int32 `json:"minReplicas" protobuf:"varint,1,opt,name=minReplicas"`
55
MaxReplicas *uint32 `json:"maxReplicas,omitempty" protobuf:"varint,2,opt,name=maxReplicas"` // takes precedence over min
66
ReplicaRatio uint32 `json:"replicaRatio,omitempty" protobuf:"varint,3,opt,name=replicaRatio"`
77
}

config/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ spec:
700700
replicaRatio:
701701
format: int32
702702
type: integer
703+
required:
704+
- minReplicas
703705
type: object
704706
serviceAccountName:
705707
default: pipeline
@@ -2524,6 +2526,8 @@ spec:
25242526
replicaRatio:
25252527
format: int32
25262528
type: integer
2529+
required:
2530+
- minReplicas
25272531
type: object
25282532
serviceAccountName:
25292533
default: pipeline

config/crd/bases/dataflow.argoproj.io_pipelines.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,8 @@ spec:
10661066
replicaRatio:
10671067
format: int32
10681068
type: integer
1069+
required:
1070+
- minReplicas
10691071
type: object
10701072
serviceAccountName:
10711073
default: pipeline

config/crd/bases/dataflow.argoproj.io_steps.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,8 @@ spec:
10231023
replicaRatio:
10241024
format: int32
10251025
type: integer
1026+
required:
1027+
- minReplicas
10261028
type: object
10271029
serviceAccountName:
10281030
default: pipeline

config/default.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ spec:
700700
replicaRatio:
701701
format: int32
702702
type: integer
703+
required:
704+
- minReplicas
703705
type: object
704706
serviceAccountName:
705707
default: pipeline
@@ -2524,6 +2526,8 @@ spec:
25242526
replicaRatio:
25252527
format: int32
25262528
type: integer
2529+
required:
2530+
- minReplicas
25272531
type: object
25282532
serviceAccountName:
25292533
default: pipeline

config/dev.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ spec:
700700
replicaRatio:
701701
format: int32
702702
type: integer
703+
required:
704+
- minReplicas
703705
type: object
704706
serviceAccountName:
705707
default: pipeline
@@ -2524,6 +2526,8 @@ spec:
25242526
replicaRatio:
25252527
format: int32
25262528
type: integer
2529+
required:
2530+
- minReplicas
25272531
type: object
25282532
serviceAccountName:
25292533
default: pipeline

config/quick-start.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ spec:
700700
replicaRatio:
701701
format: int32
702702
type: integer
703+
required:
704+
- minReplicas
703705
type: object
704706
serviceAccountName:
705707
default: pipeline
@@ -2524,6 +2526,8 @@ spec:
25242526
replicaRatio:
25252527
format: int32
25262528
type: integer
2529+
required:
2530+
- minReplicas
25272531
type: object
25282532
serviceAccountName:
25292533
default: pipeline

0 commit comments

Comments
 (0)