Merge pull request #934 from johnsonshi/fix-smi-trafficsplit-v1alpha2-omitempty

fix: Require SMI TrafficSplit Service and Weight
This commit is contained in:
Stefan Prodan
2021-06-14 18:07:42 +03:00
committed by GitHub
+2 -2
View File
@@ -33,8 +33,8 @@ type TrafficSplitSpec struct {
// TrafficSplitBackend defines a backend
type TrafficSplitBackend struct {
Service string `json:"service,omitempty"`
Weight int `json:"weight,omitempty"`
Service string `json:"service"`
Weight int `json:"weight"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object