forked from LaconicNetwork/kompose
commit
bfe8971890
@ -54,7 +54,7 @@ var RootCmd = &cobra.Command{
|
|||||||
Use: "kompose",
|
Use: "kompose",
|
||||||
Short: "A tool helping Docker Compose users move to Kubernetes",
|
Short: "A tool helping Docker Compose users move to Kubernetes",
|
||||||
Long: `Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.`,
|
Long: `Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.`,
|
||||||
// PersitentPreRun will be "inherited" by all children and ran before *every* command unless
|
// PersistentPreRun will be "inherited" by all children and ran before *every* command unless
|
||||||
// the child has overridden the functionality. This functionality was implemented to check / modify
|
// the child has overridden the functionality. This functionality was implemented to check / modify
|
||||||
// all global flag calls regardless of app call.
|
// all global flag calls regardless of app call.
|
||||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||||
|
|||||||
@ -110,7 +110,7 @@ func checkUnsupportedKey(composeProject *project.Project) []string {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//get yaml tag name instad of variable name
|
//get yaml tag name instead of variable name
|
||||||
yamlTagName := strings.Split(f.Tag("yaml"), ",")[0]
|
yamlTagName := strings.Split(f.Tag("yaml"), ",")[0]
|
||||||
if f.Name() == "Networks" {
|
if f.Name() == "Networks" {
|
||||||
// networks always contains one default element, even it isn't declared in compose v2.
|
// networks always contains one default element, even it isn't declared in compose v2.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user