make MirrorWeight's type int, not float64

This commit is contained in:
mathetake
2020-03-10 15:47:46 +09:00
parent 3425d6e965
commit 7380dbb8ab
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -179,9 +179,9 @@ type CanaryAnalysis struct {
// +optional
Mirror bool `json:"mirror,omitempty"`
// Percentage of the traffic to be mirrored in the range of [0.0, 100.0].
// Percentage of the traffic to be mirrored in the range of [0, 100].
// +optional
MirrorWeight float64 `json:"mirrorWeight,omitempty"`
MirrorWeight int `json:"mirrorWeight,omitempty"`
// Max traffic percentage routed to canary
// +optional