Skip to content

Commit 6ba7098

Browse files
authored
Merge pull request #41 from qmhu/ehpa-omitempty
Add omitempty for specificReplicas
2 parents 074bc46 + 7ee9dbc commit 6ba7098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoscaling/v1alpha1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type EffectiveHorizontalPodAutoscalerSpec struct {
4545
// If not set, when ScaleStrategy is setting to Preview, it will just stop scaling
4646
// +optional
4747
// +kubebuilder:validation:Type=integer
48-
SpecificReplicas *int32 `json:"specificReplicas"`
48+
SpecificReplicas *int32 `json:"specificReplicas,omitempty"`
4949
// metrics contains the specifications for which to use to calculate the
5050
// desired replica count (the maximum replica count across all metrics will
5151
// be used). The desired replica count is calculated multiplying the

0 commit comments

Comments
 (0)