[traefik] Api changes & codegen

This commit is contained in:
nmlc
2020-11-25 07:50:54 +05:00
parent 2f027de91f
commit a3b9ed126d
27 changed files with 1083 additions and 1 deletions
+4
View File
@@ -175,6 +175,10 @@ type CanaryService struct {
// +optional
Backends []string `json:"backends,omitempty"`
// TraefikService is metadata to add to the traefik service
// +optional
TraefikService *CustomMetadata `json:"traefikService,omitempty"`
// Apex is metadata to add to the apex service
// +optional
Apex *CustomMetadata `json:"apex,omitempty"`
+1
View File
@@ -10,4 +10,5 @@ const (
NGINXProvider string = "nginx"
KubernetesProvider string = "kubernetes"
SkipperProvider string = "skipper"
TraefikProvider string = "traefik"
)
@@ -369,6 +369,11 @@ func (in *CanaryService) DeepCopyInto(out *CanaryService) {
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.TraefikService != nil {
in, out := &in.TraefikService, &out.TraefikService
*out = new(CustomMetadata)
(*in).DeepCopyInto(*out)
}
if in.Apex != nil {
in, out := &in.Apex, &out.Apex
*out = new(CustomMetadata)