From 367afb005dcb3aa5318d2bb0a996cbf73381af4b Mon Sep 17 00:00:00 2001 From: orangedeng Date: Tue, 22 Jan 2019 16:17:22 +0800 Subject: [PATCH] go generate --- client/project/v3/zz_generated_http_ingress_path.go | 2 ++ client/project/v3/zz_generated_http_ingress_rule_value.go | 2 +- client/project/v3/zz_generated_ingress_rule.go | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/project/v3/zz_generated_http_ingress_path.go b/client/project/v3/zz_generated_http_ingress_path.go index dc369c00..9b3c931d 100644 --- a/client/project/v3/zz_generated_http_ingress_path.go +++ b/client/project/v3/zz_generated_http_ingress_path.go @@ -4,12 +4,14 @@ import "k8s.io/apimachinery/pkg/util/intstr" const ( HTTPIngressPathType = "httpIngressPath" + HTTPIngressPathFieldPath = "path" HTTPIngressPathFieldServiceID = "serviceId" HTTPIngressPathFieldTargetPort = "targetPort" HTTPIngressPathFieldWorkloadIDs = "workloadIds" ) type HTTPIngressPath struct { + Path string `json:"path,omitempty" yaml:"path,omitempty"` ServiceID string `json:"serviceId,omitempty" yaml:"serviceId,omitempty"` TargetPort intstr.IntOrString `json:"targetPort,omitempty" yaml:"targetPort,omitempty"` WorkloadIDs []string `json:"workloadIds,omitempty" yaml:"workloadIds,omitempty"` diff --git a/client/project/v3/zz_generated_http_ingress_rule_value.go b/client/project/v3/zz_generated_http_ingress_rule_value.go index 7a4d886a..96254624 100644 --- a/client/project/v3/zz_generated_http_ingress_rule_value.go +++ b/client/project/v3/zz_generated_http_ingress_rule_value.go @@ -6,5 +6,5 @@ const ( ) type HTTPIngressRuleValue struct { - Paths map[string]HTTPIngressPath `json:"paths,omitempty" yaml:"paths,omitempty"` + Paths []HTTPIngressPath `json:"paths,omitempty" yaml:"paths,omitempty"` } diff --git a/client/project/v3/zz_generated_ingress_rule.go b/client/project/v3/zz_generated_ingress_rule.go index ffbd253e..f6b787c2 100644 --- a/client/project/v3/zz_generated_ingress_rule.go +++ b/client/project/v3/zz_generated_ingress_rule.go @@ -7,6 +7,6 @@ const ( ) type IngressRule struct { - Host string `json:"host,omitempty" yaml:"host,omitempty"` - Paths map[string]IngressBackend `json:"paths,omitempty" yaml:"paths,omitempty"` + Host string `json:"host,omitempty" yaml:"host,omitempty"` + Paths []HTTPIngressPath `json:"paths,omitempty" yaml:"paths,omitempty"` }