1
0
mirror of https://github.com/rancher/types.git synced 2025-07-18 23:36:24 +00:00

go generate

This commit is contained in:
orangedeng 2019-01-22 16:17:22 +08:00 committed by Craig Jellick
parent ac05260398
commit 367afb005d
3 changed files with 5 additions and 3 deletions

View File

@ -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"`

View File

@ -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"`
}

View File

@ -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"`
}