Skip to content

Commit 5c0f178

Browse files
committed
Code Review
1 parent 94eaa04 commit 5c0f178

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apis/v1alpha2/nginxproxy_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,9 @@ type HPASpec struct {
450450
TargetMemoryUtilizationPercentage *int32 `json:"targetMemoryUtilizationPercentage,omitempty"`
451451

452452
// Minimum number of replicas.
453-
MinReplicas *int32 `json:"minReplicas"`
453+
//
454+
// +optional
455+
MinReplicas *int32 `json:"minReplicas,omitempty"`
454456

455457
// Maximum number of replicas.
456458
MaxReplicas int32 `json:"maxReplicas"`

config/crd/bases/gateway.nginx.org_nginxproxies.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4120,7 +4120,6 @@ spec:
41204120
required:
41214121
- enabled
41224122
- maxReplicas
4123-
- minReplicas
41244123
type: object
41254124
x-kubernetes-validations:
41264125
- message: at least one metric must be specified when autoscaling

deploy/crds.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4705,7 +4705,6 @@ spec:
47054705
required:
47064706
- enabled
47074707
- maxReplicas
4708-
- minReplicas
47094708
type: object
47104709
x-kubernetes-validations:
47114710
- message: at least one metric must be specified when autoscaling

0 commit comments

Comments
 (0)