@@ -951,14 +951,14 @@ type ReplicationControllerList struct {
...
@@ -951,14 +951,14 @@ type ReplicationControllerList struct {
}
}
// Session Affinity Type string
// Session Affinity Type string
typeAffinityTypestring
typeServiceAffinitystring
const(
const(
// AffinityTypeClientIP is the Client IP based.
// ServiceAffinityClientIP is the Client IP based.
AffinityTypeClientIPAffinityType="ClientIP"
ServiceAffinityClientIPServiceAffinity="ClientIP"
// AffinityTypeNone - no session affinity.
// ServiceAffinityNone - no session affinity.
AffinityTypeNoneAffinityType="None"
ServiceAffinityNoneServiceAffinity="None"
)
)
// ServiceStatus represents the current status of a service
// ServiceStatus represents the current status of a service
...
@@ -987,7 +987,7 @@ type ServiceSpec struct {
...
@@ -987,7 +987,7 @@ type ServiceSpec struct {
PublicIPs[]string`json:"publicIPs,omitempty" description:"externally visible IPs (e.g. load balancers) that should be proxied to this service"`
PublicIPs[]string`json:"publicIPs,omitempty" description:"externally visible IPs (e.g. load balancers) that should be proxied to this service"`
// Optional: Supports "ClientIP" and "None". Used to maintain session affinity.
// Optional: Supports "ClientIP" and "None". Used to maintain session affinity.
SessionAffinityAffinityType`json:"sessionAffinity,omitempty" description:"enable client IP based session affinity; must be ClientIP or None; defaults to None"`
SessionAffinityServiceAffinity`json:"sessionAffinity,omitempty" description:"enable client IP based session affinity; must be ClientIP or None; defaults to None"`
// ServiceAffinityClientIP is the Client IP based.
AffinityTypeClientIPAffinityType="ClientIP"
ServiceAffinityClientIPServiceAffinity="ClientIP"
// AffinityTypeNone - no session affinity.
// ServiceAffinityNone - no session affinity.
AffinityTypeNoneAffinityType="None"
ServiceAffinityNoneServiceAffinity="None"
)
)
const(
const(
...
@@ -856,7 +856,7 @@ type Service struct {
...
@@ -856,7 +856,7 @@ type Service struct {
ProxyPortint`json:"proxyPort,omitempty" description:"if non-zero, a pre-allocated host port used for this service by the proxy on each node; assigned by the master and ignored on input"`
ProxyPortint`json:"proxyPort,omitempty" description:"if non-zero, a pre-allocated host port used for this service by the proxy on each node; assigned by the master and ignored on input"`
// Optional: Supports "ClientIP" and "None". Used to maintain session affinity.
// Optional: Supports "ClientIP" and "None". Used to maintain session affinity.
SessionAffinityAffinityType`json:"sessionAffinity,omitempty" description:"enable client IP based session affinity; must be ClientIP or None; defaults to None"`
SessionAffinityServiceAffinity`json:"sessionAffinity,omitempty" description:"enable client IP based session affinity; must be ClientIP or None; defaults to None"`
// Optional: Ports to expose on the service. If this field is
// Optional: Ports to expose on the service. If this field is
// specified, the legacy fields (Port, PortName, Protocol, and
// specified, the legacy fields (Port, PortName, Protocol, and
// ServiceAffinityClientIP is the Client IP based.
AffinityTypeClientIPAffinityType="ClientIP"
ServiceAffinityClientIPServiceAffinity="ClientIP"
// AffinityTypeNone - no session affinity.
// ServiceAffinityNone - no session affinity.
AffinityTypeNoneAffinityType="None"
ServiceAffinityNoneServiceAffinity="None"
)
)
const(
const(
...
@@ -864,7 +864,7 @@ type Service struct {
...
@@ -864,7 +864,7 @@ type Service struct {
ProxyPortint`json:"proxyPort,omitempty" description:"if non-zero, a pre-allocated host port used for this service by the proxy on each node; assigned by the master and ignored on input"`
ProxyPortint`json:"proxyPort,omitempty" description:"if non-zero, a pre-allocated host port used for this service by the proxy on each node; assigned by the master and ignored on input"`
// Optional: Supports "ClientIP" and "None". Used to maintain session affinity.
// Optional: Supports "ClientIP" and "None". Used to maintain session affinity.
SessionAffinityAffinityType`json:"sessionAffinity,omitempty" description:"enable client IP based session affinity; must be ClientIP or None; defaults to None"`
SessionAffinityServiceAffinity`json:"sessionAffinity,omitempty" description:"enable client IP based session affinity; must be ClientIP or None; defaults to None"`
// Optional: Ports to expose on the service. If this field is
// Optional: Ports to expose on the service. If this field is
// specified, the legacy fields (Port, PortName, Protocol, and
// specified, the legacy fields (Port, PortName, Protocol, and
@@ -955,14 +955,14 @@ type ReplicationControllerList struct {
...
@@ -955,14 +955,14 @@ type ReplicationControllerList struct {
}
}
// Session Affinity Type string
// Session Affinity Type string
typeAffinityTypestring
typeServiceAffinitystring
const(
const(
// AffinityTypeClientIP is the Client IP based.
// ServiceAffinityClientIP is the Client IP based.
AffinityTypeClientIPAffinityType="ClientIP"
ServiceAffinityClientIPServiceAffinity="ClientIP"
// AffinityTypeNone - no session affinity.
// ServiceAffinityNone - no session affinity.
AffinityTypeNoneAffinityType="None"
ServiceAffinityNoneServiceAffinity="None"
)
)
// ServiceStatus represents the current status of a service
// ServiceStatus represents the current status of a service
...
@@ -991,7 +991,7 @@ type ServiceSpec struct {
...
@@ -991,7 +991,7 @@ type ServiceSpec struct {
PublicIPs[]string`json:"publicIPs,omitempty" description:"externally visible IPs (e.g. load balancers) that should be proxied to this service"`
PublicIPs[]string`json:"publicIPs,omitempty" description:"externally visible IPs (e.g. load balancers) that should be proxied to this service"`
// Optional: Supports "ClientIP" and "None". Used to maintain session affinity.
// Optional: Supports "ClientIP" and "None". Used to maintain session affinity.
SessionAffinityAffinityType`json:"sessionAffinity,omitempty" description:"enable client IP based session affinity; must be ClientIP or None; defaults to None"`
SessionAffinityServiceAffinity`json:"sessionAffinity,omitempty" description:"enable client IP based session affinity; must be ClientIP or None; defaults to None"`