remove deprecated NodeLegacyHostIP

Kubernetes-commit: 7d00e5cfb66d4501879125f4d3c732f9bb726d0c
This commit is contained in:
NickrenREN 2017-04-24 10:21:29 +08:00 committed by Kubernetes Publisher
parent ca719949f1
commit dad27d745a
2 changed files with 10 additions and 16 deletions

View File

@ -2918,16 +2918,12 @@ type NodeCondition struct {
type NodeAddressType string type NodeAddressType string
// These are valid address types of node. NodeLegacyHostIP is used to transit
// from out-dated HostIP field to NodeAddress.
const ( const (
// Deprecated: NodeLegacyHostIP will be removed in 1.7. NodeHostName NodeAddressType = "Hostname"
NodeLegacyHostIP NodeAddressType = "LegacyHostIP" NodeExternalIP NodeAddressType = "ExternalIP"
NodeHostName NodeAddressType = "Hostname" NodeInternalIP NodeAddressType = "InternalIP"
NodeExternalIP NodeAddressType = "ExternalIP" NodeExternalDNS NodeAddressType = "ExternalDNS"
NodeInternalIP NodeAddressType = "InternalIP" NodeInternalDNS NodeAddressType = "InternalDNS"
NodeExternalDNS NodeAddressType = "ExternalDNS"
NodeInternalDNS NodeAddressType = "InternalDNS"
) )
type NodeAddress struct { type NodeAddress struct {

View File

@ -3363,13 +3363,11 @@ type NodeAddressType string
// These are valid address type of node. // These are valid address type of node.
const ( const (
// Deprecated: NodeLegacyHostIP will be removed in 1.7. NodeHostName NodeAddressType = "Hostname"
NodeLegacyHostIP NodeAddressType = "LegacyHostIP" NodeExternalIP NodeAddressType = "ExternalIP"
NodeHostName NodeAddressType = "Hostname" NodeInternalIP NodeAddressType = "InternalIP"
NodeExternalIP NodeAddressType = "ExternalIP" NodeExternalDNS NodeAddressType = "ExternalDNS"
NodeInternalIP NodeAddressType = "InternalIP" NodeInternalDNS NodeAddressType = "InternalDNS"
NodeExternalDNS NodeAddressType = "ExternalDNS"
NodeInternalDNS NodeAddressType = "InternalDNS"
) )
// NodeAddress contains information for the node's address. // NodeAddress contains information for the node's address.