mirror of
https://github.com/fluxcd/flagger.git
synced 2026-03-02 17:51:00 +00:00
In the SMI TrafficSplit spec, Weight and Service are required values for TrafficSplit Backend. In flagger's SMI v1alpha2 implementation, Service and Weight have the omitempty json option. During canary analysis, flagger initially creates a SMI TrafficSplit custom resource in which the canary backend service has a Weight of 0. The omitempty option causes Go to omit Weight when it sends the custom resource to Kubernetes. This throws an error during canary analysis. Signed-off-by: Johnson Shi <Johnson.Shi@microsoft.com>