mirror of
https://github.com/fluxcd/flagger.git
synced 2026-08-29 02:37:31 +00:00
fix json key of mirrorWeight
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user