Skip to content

Commit d813c56

Browse files
authored
Mark CanaryMetric.Threshold as omitempty
1 parent 2dacf08 commit d813c56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apis/flagger/v1beta1/canary.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ type CanaryMetric struct {
254254
Interval string `json:"interval,omitempty"`
255255

256256
// Deprecated: Max value accepted for this metric (replaced by ThresholdRange)
257-
Threshold float64 `json:"threshold"`
257+
Threshold float64 `json:"threshold,omitempty"`
258258

259259
// Range value accepted for this metric
260260
// +optional

0 commit comments

Comments
 (0)