Skip to content

Commit

Permalink
Mark CanaryMetric.Threshold as omitempty
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Cordell <[email protected]>
  • Loading branch information
ecordell committed Nov 9, 2021
1 parent 2dacf08 commit bc9a231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/flagger/v1beta1/canary.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ type CanaryMetric struct {
Interval string `json:"interval,omitempty"`

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

// Range value accepted for this metric
// +optional
Expand Down

0 comments on commit bc9a231

Please sign in to comment.