Skip to content

Commit

Permalink
Separate type definitions into individual files (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
hossainemruz authored and tamalsaha committed Jan 15, 2019
1 parent 77f2113 commit c48dbfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions root.go
Expand Up @@ -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"
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions server/options.go
Expand Up @@ -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"
Expand Down Expand Up @@ -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.")

}

Expand Down

0 comments on commit c48dbfc

Please sign in to comment.