1
0
mirror of https://github.com/rancher/types.git synced 2025-09-16 14:59:16 +00:00

Json annotation fixes for public endpoints

This commit is contained in:
Alena Prokharchyk
2018-02-08 16:04:53 -08:00
committed by Darren Shepherd
parent 85c8733440
commit aafde0c191

View File

@@ -143,13 +143,13 @@ type SSHAuth struct {
type NamespacedSSHAuth SSHAuth
type PublicEndpoint struct {
NodeName string `json:"node,omitempty" norman:"type=reference[node],nocreate,noupdate"`
NodeName string `json:"nodeName,omitempty" norman:"type=reference[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
ServiceName string `json:"service,omitempty" norman:"type=reference[service],nocreate,noupdate"`
ServiceName string `json:"serviceName,omitempty" norman:"type=reference[service],nocreate,noupdate"`
// for host port
PodName string `json:"pod,omitempty" norman:"type=reference[pod],nocreate,noupdate"`
PodName string `json:"podName,omitempty" norman:"type=reference[pod],nocreate,noupdate"`
//serviceName and podName are mutually exclusive
}