forked from LaconicNetwork/kompose
Remove code for parsing DAB files (#1435)
* Remove code for parsing DAB files Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
This commit is contained in:
+1
-2
@@ -106,8 +106,7 @@ var convertCmd = &cobra.Command{
|
||||
MultipleContainerMode: MultipleContainerMode,
|
||||
}
|
||||
|
||||
// Validate before doing anything else. Use "bundle" if passed in.
|
||||
app.ValidateFlags(GlobalBundle, args, cmd, &ConvertOpt)
|
||||
app.ValidateFlags(args, cmd, &ConvertOpt)
|
||||
app.ValidateComposeFile(&ConvertOpt)
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
@@ -39,7 +39,6 @@ func (errorOnWarningHook) Fire(entry *log.Entry) error {
|
||||
|
||||
// TODO: comment
|
||||
var (
|
||||
GlobalBundle string
|
||||
GlobalProvider string
|
||||
GlobalVerbose bool
|
||||
GlobalSuppressWarnings bool
|
||||
@@ -95,10 +94,5 @@ func init() {
|
||||
RootCmd.PersistentFlags().BoolVar(&GlobalSuppressWarnings, "suppress-warnings", false, "Suppress all warnings")
|
||||
RootCmd.PersistentFlags().BoolVar(&GlobalErrorOnWarning, "error-on-warning", false, "Treat any warning as an error")
|
||||
RootCmd.PersistentFlags().StringArrayVarP(&GlobalFiles, "file", "f", []string{}, "Specify an alternative compose file")
|
||||
RootCmd.PersistentFlags().StringVarP(&GlobalBundle, "bundle", "b", "", "Specify a Distributed Application Bundle (DAB) file")
|
||||
RootCmd.PersistentFlags().StringVar(&GlobalProvider, "provider", "kubernetes", "Specify a provider. Kubernetes or OpenShift.")
|
||||
|
||||
// Mark DAB / bundle as deprecated, see issue: https://github.com/kubernetes/kompose/issues/390
|
||||
// As DAB is still EXPERIMENTAL
|
||||
RootCmd.PersistentFlags().MarkDeprecated("bundle", "DAB / Bundle is deprecated, see: https://github.com/kubernetes/kompose/issues/390")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user