fix json key of mirrorWeight

This commit is contained in:
mathetake
2020-03-10 14:15:18 +09:00
parent adff6989f5
commit 3a887afa38
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ type CanaryAnalysis struct {
// Percentage of the traffic to be mirrored in the range of [0.0, 100.0].
// +optional
MirrorWeight float64 `json:"mirror_weight,omitempty"`
MirrorWeight float64 `json:"mirrorWeight,omitempty"`
// Max traffic percentage routed to canary
// +optional
+1 -1
View File
@@ -328,7 +328,7 @@ type HTTPRoute struct {
// Percentage of the traffic to be mirrored by the `mirror` field.
// If this field is absent, all the traffic (100%) will be mirrored.
// Max value is 100.
MirrorPercentage *Percent `json:"mirror_percentage"`
MirrorPercentage *Percent `json:"mirrorPercentage,omitempty"`
// Cross-Origin Resource Sharing policy (CORS). Refer to
// https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS