diff --git a/root.go b/root.go index 8d0fb44c..88988192 100644 --- a/root.go +++ b/root.go @@ -8,7 +8,7 @@ import ( "github.com/appscode/go/log/golog" v "github.com/appscode/go/version" "github.com/appscode/kutil/tools/cli" - api "github.com/appscode/stash/apis/stash/v1alpha1" + "github.com/appscode/stash/apis" "github.com/appscode/stash/client/clientset/versioned/scheme" "github.com/appscode/stash/pkg/util" "github.com/spf13/cobra" @@ -37,7 +37,7 @@ func NewRootCmd() *cobra.Command { flag.CommandLine.Parse([]string{}) rootCmd.PersistentFlags().StringVar(&util.ServiceName, "service-name", "stash-operator", "Stash service name.") rootCmd.PersistentFlags().BoolVar(&cli.EnableAnalytics, "enable-analytics", cli.EnableAnalytics, "Send analytical events to Google Analytics") - rootCmd.PersistentFlags().BoolVar(&api.EnableStatusSubresource, "enable-status-subresource", api.EnableStatusSubresource, "If true, uses sub resource for crds.") + rootCmd.PersistentFlags().BoolVar(&apis.EnableStatusSubresource, "enable-status-subresource", apis.EnableStatusSubresource, "If true, uses sub resource for crds.") rootCmd.AddCommand(v.NewCmdVersion()) stopCh := genericapiserver.SetupSignalHandler() diff --git a/server/options.go b/server/options.go index debbcc0b..b45fcf9e 100644 --- a/server/options.go +++ b/server/options.go @@ -6,7 +6,7 @@ import ( stringz "github.com/appscode/go/strings" v "github.com/appscode/go/version" - api "github.com/appscode/stash/apis/stash/v1alpha1" + "github.com/appscode/stash/apis" cs "github.com/appscode/stash/client/clientset/versioned" "github.com/appscode/stash/pkg/controller" "github.com/appscode/stash/pkg/docker" @@ -54,7 +54,7 @@ func (s *ExtraOptions) AddGoFlags(fs *flag.FlagSet) { fs.BoolVar(&s.EnableMutatingWebhook, "enable-mutating-webhook", s.EnableMutatingWebhook, "If true, enables mutating webhooks for KubeDB CRDs.") fs.BoolVar(&s.EnableValidatingWebhook, "enable-validating-webhook", s.EnableValidatingWebhook, "If true, enables validating webhooks for KubeDB CRDs.") - fs.BoolVar(&api.EnableStatusSubresource, "enable-status-subresource", api.EnableStatusSubresource, "If true, uses sub resource for KubeDB crds.") + fs.BoolVar(&apis.EnableStatusSubresource, "enable-status-subresource", apis.EnableStatusSubresource, "If true, uses sub resource for KubeDB crds.") }