forked from LaconicNetwork/kompose
Disable DAB
See issue: https://github.com/kubernetes-incubator/kompose/issues/390 Disable DAB as it is hard to maintain / not much usage / DAB is still experimental in Docker and there hasn't been much movement: https://github.com/moby/moby/issues/26876 MarkDeprecated does not work at the moment due to issue: https://github.com/kubernetes-incubator/kompose/issues/652 However, that is not a blocker as we `fatalF` within `ValidateFlags`
This commit is contained in:
@@ -102,4 +102,8 @@ func init() {
|
||||
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-incubator/kompose/issues/390
|
||||
// As DAB is still EXPERIMENTAL
|
||||
RootCmd.PersistentFlags().MarkDeprecated("bundle", "DAB / Bundle is deprecated, see: https://github.com/kubernetes-incubator/kompose/issues/390")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user