1
0
mirror of https://github.com/rancher/types.git synced 2025-07-15 22:15:49 +00:00

Revert "Merge pull request #263 from alena1108/feb28"

This reverts commit 9eba3c1e08, reversing
changes made to d3064b6969.
This commit is contained in:
Craig Jellick 2018-03-01 05:47:20 -07:00
parent 4d37249aae
commit fdeee128f6

View File

@ -2,7 +2,6 @@ package schema
import (
"github.com/rancher/norman/types"
"github.com/rancher/norman/types/convert"
)
type ServiceSpecMapper struct {
@ -15,12 +14,9 @@ func (e ServiceSpecMapper) ToInternal(data map[string]interface{}) {
if data == nil {
return
}
if convert.IsEmpty(data["hostname"]) {
data["type"] = "ClusterIP"
data["clusterIp"] = "None"
} else {
data["type"] = "ExternalName"
}
data["clusterIp"] = "None"
data["type"] = "ClusterIP"
}
func (e ServiceSpecMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error {