Skip to content

Commit

Permalink
fix: make minReplicas required
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed May 19, 2021
1 parent 3089119 commit c000e41
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/scale.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v1alpha1

type Scale struct {
MinReplicas int32 `json:"minReplicas,omitempty" protobuf:"varint,1,opt,name=minReplicas"`
MinReplicas int32 `json:"minReplicas" protobuf:"varint,1,opt,name=minReplicas"`
MaxReplicas *uint32 `json:"maxReplicas,omitempty" protobuf:"varint,2,opt,name=maxReplicas"` // takes precedence over min
ReplicaRatio uint32 `json:"replicaRatio,omitempty" protobuf:"varint,3,opt,name=replicaRatio"`
}
Expand Down
4 changes: 4 additions & 0 deletions config/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ spec:
replicaRatio:
format: int32
type: integer
required:
- minReplicas
type: object
serviceAccountName:
default: pipeline
Expand Down Expand Up @@ -2524,6 +2526,8 @@ spec:
replicaRatio:
format: int32
type: integer
required:
- minReplicas
type: object
serviceAccountName:
default: pipeline
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/dataflow.argoproj.io_pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,8 @@ spec:
replicaRatio:
format: int32
type: integer
required:
- minReplicas
type: object
serviceAccountName:
default: pipeline
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/dataflow.argoproj.io_steps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,8 @@ spec:
replicaRatio:
format: int32
type: integer
required:
- minReplicas
type: object
serviceAccountName:
default: pipeline
Expand Down
4 changes: 4 additions & 0 deletions config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ spec:
replicaRatio:
format: int32
type: integer
required:
- minReplicas
type: object
serviceAccountName:
default: pipeline
Expand Down Expand Up @@ -2524,6 +2526,8 @@ spec:
replicaRatio:
format: int32
type: integer
required:
- minReplicas
type: object
serviceAccountName:
default: pipeline
Expand Down
4 changes: 4 additions & 0 deletions config/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ spec:
replicaRatio:
format: int32
type: integer
required:
- minReplicas
type: object
serviceAccountName:
default: pipeline
Expand Down Expand Up @@ -2524,6 +2526,8 @@ spec:
replicaRatio:
format: int32
type: integer
required:
- minReplicas
type: object
serviceAccountName:
default: pipeline
Expand Down
4 changes: 4 additions & 0 deletions config/quick-start.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ spec:
replicaRatio:
format: int32
type: integer
required:
- minReplicas
type: object
serviceAccountName:
default: pipeline
Expand Down Expand Up @@ -2524,6 +2526,8 @@ spec:
replicaRatio:
format: int32
type: integer
required:
- minReplicas
type: object
serviceAccountName:
default: pipeline
Expand Down

0 comments on commit c000e41

Please sign in to comment.