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 commit9eba3c1e08
, reversing changes made tod3064b6969
.
This commit is contained in:
parent
4d37249aae
commit
fdeee128f6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user