mirror of
https://github.com/rancher/types.git
synced 2025-07-18 23:36:24 +00:00
go generate
This commit is contained in:
parent
ac05260398
commit
367afb005d
@ -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"`
|
||||
|
@ -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"`
|
||||
}
|
||||
|
@ -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"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user