diff --git a/pkg/apis/flagger/v1beta1/canary.go b/pkg/apis/flagger/v1beta1/canary.go index f0d3e905..7e33239b 100644 --- a/pkg/apis/flagger/v1beta1/canary.go +++ b/pkg/apis/flagger/v1beta1/canary.go @@ -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 diff --git a/pkg/apis/istio/v1alpha3/virtual_service.go b/pkg/apis/istio/v1alpha3/virtual_service.go index 84ca29e2..7718ab07 100644 --- a/pkg/apis/istio/v1alpha3/virtual_service.go +++ b/pkg/apis/istio/v1alpha3/virtual_service.go @@ -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