Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
waynz0r committed Feb 2, 2022
1 parent 214c5c8 commit a4fd6f6
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/common.gen.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@
"nullable": true
},
"max": {
"description": "max is the upper limit for the number of replicas to which the autoscaler can scale up. min and max both needs to be set the turn on autoscaling. It cannot be less that min.",
"description": "max is the upper limit for the number of replicas to which the autoscaler can scale up. min and max both need to be set the turn on autoscaling. It cannot be less than min.",
"type": "integer",
"nullable": true
},
"min": {
"description": "min is the lower limit for the number of replicas to which the autoscaler can scale down. min and max both needs to be set the turn on autoscaling.",
"description": "min is the lower limit for the number of replicas to which the autoscaler can scale down. min and max both need to be set the turn on autoscaling.",
"type": "integer",
"nullable": true
},
Expand Down
6 changes: 3 additions & 3 deletions api/v1alpha1/common.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions api/v1alpha1/common.pb.html
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ <h2 id="Replicas">Replicas</h2>
<td>
<p>min is the lower limit for the number of replicas to which the autoscaler
can scale down.
min and max both needs to be set the turn on autoscaling.
min and max both need to be set the turn on autoscaling.
+kubebuilder:validation:Minimum=0</p>

</td>
Expand All @@ -1288,8 +1288,8 @@ <h2 id="Replicas">Replicas</h2>
<td><code><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#int32value">Int32Value</a></code></td>
<td>
<p>max is the upper limit for the number of replicas to which the autoscaler can scale up.
min and max both needs to be set the turn on autoscaling.
It cannot be less that min.
min and max both need to be set the turn on autoscaling.
It cannot be less than min.
+kubebuilder:validation:Minimum=1</p>

</td>
Expand Down
6 changes: 3 additions & 3 deletions api/v1alpha1/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -540,13 +540,13 @@ message Replicas {

// min is the lower limit for the number of replicas to which the autoscaler
// can scale down.
// min and max both needs to be set the turn on autoscaling.
// min and max both need to be set the turn on autoscaling.
// +kubebuilder:validation:Minimum=0
google.protobuf.Int32Value min = 2 [(gogoproto.wktpointer) = true];

// max is the upper limit for the number of replicas to which the autoscaler can scale up.
// min and max both needs to be set the turn on autoscaling.
// It cannot be less that min.
// min and max both need to be set the turn on autoscaling.
// It cannot be less than min.
// +kubebuilder:validation:Minimum=1
google.protobuf.Int32Value max = 3 [(gogoproto.wktpointer) = true];

Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha1/istiocontrolplane.gen.json
Original file line number Diff line number Diff line change
Expand Up @@ -2313,12 +2313,12 @@
"nullable": true
},
"max": {
"description": "max is the upper limit for the number of replicas to which the autoscaler can scale up. min and max both needs to be set the turn on autoscaling. It cannot be less that min.",
"description": "max is the upper limit for the number of replicas to which the autoscaler can scale up. min and max both need to be set the turn on autoscaling. It cannot be less than min.",
"type": "integer",
"nullable": true
},
"min": {
"description": "min is the lower limit for the number of replicas to which the autoscaler can scale down. min and max both needs to be set the turn on autoscaling.",
"description": "min is the lower limit for the number of replicas to which the autoscaler can scale down. min and max both need to be set the turn on autoscaling.",
"type": "integer",
"nullable": true
},
Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha1/istiomeshgateway.gen.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,12 @@
"nullable": true
},
"max": {
"description": "max is the upper limit for the number of replicas to which the autoscaler can scale up. min and max both needs to be set the turn on autoscaling. It cannot be less that min.",
"description": "max is the upper limit for the number of replicas to which the autoscaler can scale up. min and max both need to be set the turn on autoscaling. It cannot be less than min.",
"type": "integer",
"nullable": true
},
"min": {
"description": "min is the lower limit for the number of replicas to which the autoscaler can scale down. min and max both needs to be set the turn on autoscaling.",
"description": "min is the lower limit for the number of replicas to which the autoscaler can scale down. min and max both need to be set the turn on autoscaling.",
"type": "integer",
"nullable": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ default 80 .Values.pilot.cpu.targetAverageUtilization }}
targetAverageUtilization: {{ .Values.pilot.cpu.targetAverageUtilization }}
---
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ default 80 $gateway.replicas.targetCPUUtilizationPercentage }}
targetAverageUtilization: {{ $gateway.replicas.targetCPUUtilizationPercentage }}
---
{{- end }}
1 change: 1 addition & 0 deletions internal/assets/manifests/istio-meshgateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ deployment:
count: 1
min: 1
max: 1
targetCPUUtilizationPercentage: 80
resources:
limits:
cpu: "2"
Expand Down

0 comments on commit a4fd6f6

Please sign in to comment.