move k8s base functions into k8s package

This commit is contained in:
Tuna
2016-08-12 00:46:03 +07:00
parent f10d6afecf
commit baedd92036
8 changed files with 470 additions and 639 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ const (
func CheckUnsupportedKey(service interface{}) {
s := structs.New(service)
for _, f := range s.Fields() {
if f.IsExported() && !f.IsZero() {
if f.IsExported() && !f.IsZero() && f.Name() != "Networks" {
if count, ok := unsupportedKey[f.Name()]; ok && count == 0 {
fmt.Println("WARNING: Unsupported key " + composeOptions[f.Name()] + " - ignoring")
unsupportedKey[f.Name()]++