forked from LaconicNetwork/kompose
Add unit test for komposeConvert
This commit is contained in:
+2
-11
@@ -19,6 +19,7 @@ package kobject
|
||||
import (
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/fatih/structs"
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
)
|
||||
|
||||
var unsupportedKey = map[string]int{
|
||||
@@ -162,19 +163,9 @@ type EnvVar struct {
|
||||
type Ports struct {
|
||||
HostPort int32
|
||||
ContainerPort int32
|
||||
Protocol Protocol
|
||||
Protocol api.Protocol
|
||||
}
|
||||
|
||||
// Protocol defines network protocols supported for things like container ports.
|
||||
type Protocol string
|
||||
|
||||
const (
|
||||
// ProtocolTCP is the TCP protocol.
|
||||
ProtocolTCP Protocol = "TCP"
|
||||
// ProtocolUDP is the UDP protocol.
|
||||
ProtocolUDP Protocol = "UDP"
|
||||
)
|
||||
|
||||
func CheckUnsupportedKey(service interface{}) {
|
||||
s := structs.New(service)
|
||||
for _, f := range s.Fields() {
|
||||
|
||||
Reference in New Issue
Block a user