Skip to content

Commit bc9a231

Browse files
committed
Mark CanaryMetric.Threshold as omitempty
Signed-off-by: Evan Cordell <[email protected]>
1 parent 2dacf08 commit bc9a231

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)