1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 21:00:16 +00:00

Address to addresses on pubilc endpoint

and allNodes boolean flag + ingressName
This commit is contained in:
Alena Prokharchyk
2018-03-30 13:48:18 -07:00
parent a9bdee2dd2
commit ec95d46222
2 changed files with 24 additions and 15 deletions

View File

@@ -233,13 +233,19 @@ type NodeDriverSpec struct {
}
type PublicEndpoint struct {
NodeName string `json:"nodeName,omitempty" norman:"type=reference[/v3/schemas/node],nocreate,noupdate"`
Address string `json:"address,omitempty" norman:"nocreate,noupdate"`
Port int32 `json:"port,omitempty" norman:"nocreate,noupdate"`
Protocol string `json:"protocol,omitempty" norman:"nocreate,noupdate"`
// for node port service
NodeName string `json:"nodeName,omitempty" norman:"type=reference[/v3/schemas/node],nocreate,noupdate"`
Addresses []string `json:"addresses,omitempty" norman:"nocreate,noupdate"`
Port int32 `json:"port,omitempty" norman:"nocreate,noupdate"`
Protocol string `json:"protocol,omitempty" norman:"nocreate,noupdate"`
// for node port service endpoint
ServiceName string `json:"serviceName,omitempty" norman:"type=reference[service],nocreate,noupdate"`
// for host port
// for host port endpoint
PodName string `json:"podName,omitempty" norman:"type=reference[pod],nocreate,noupdate"`
//serviceName and podName are mutually exclusive
// for ingress endpoint. ServiceName, podName, ingressName are mutually exclusive
IngressName string `json:"ingressName,omitempty" norman:"type=reference[ingress],nocreate,noupdate"`
// Hostname/path are set for Ingress endpoints
Hostname string `json:"hostname,omitempty" norman:"nocreate,noupdate"`
Path string `json:"path,omitempty" norman:"nocreate,noupdate"`
// True when endpoint is exposed on every node
AllNodes bool `json:"allNodes" norman:"nocreate,noupdate"`
}

View File

@@ -85,18 +85,21 @@ type SSHAuth struct {
type NamespacedSSHAuth SSHAuth
type PublicEndpoint struct {
NodeName string `json:"nodeName,omitempty" norman:"type=reference[/v3/schemas/node],nocreate,noupdate"`
Address string `json:"address,omitempty" norman:"nocreate,noupdate"`
Port int32 `json:"port,omitempty" norman:"nocreate,noupdate"`
Protocol string `json:"protocol,omitempty" norman:"nocreate,noupdate"`
// for node port service
NodeName string `json:"nodeName,omitempty" norman:"type=reference[/v3/schemas/node],nocreate,noupdate"`
Addresses []string `json:"addresses,omitempty" norman:"nocreate,noupdate"`
Port int32 `json:"port,omitempty" norman:"nocreate,noupdate"`
Protocol string `json:"protocol,omitempty" norman:"nocreate,noupdate"`
// for node port service endpoint
ServiceName string `json:"serviceName,omitempty" norman:"type=reference[service],nocreate,noupdate"`
// for host port
// for host port endpoint
PodName string `json:"podName,omitempty" norman:"type=reference[pod],nocreate,noupdate"`
//serviceName and podName are mutually exclusive
// for ingress endpoint. ServiceName, podName, ingressName are mutually exclusive
IngressName string `json:"ingressName,omitempty" norman:"type=reference[ingress],nocreate,noupdate"`
// Hostname/path are set for Ingress endpoints
Hostname string `json:"hostname,omitempty" norman:"nocreate,noupdate"`
Path string `json:"path,omitempty" norman:"nocreate,noupdate"`
// hostname and part is for global load balancer
// True when endpoint is exposed on every node
AllNodes bool `json:"allNodes" norman:"nocreate,noupdate"`
}
type Workload struct {