Skip to content

Commit c48dbfc

Browse files
hossainemruztamalsaha
authored andcommitted
Separate type definitions into individual files (#646)
1 parent 77f2113 commit c48dbfc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/appscode/go/log/golog"
99
v "github.com/appscode/go/version"
1010
"github.com/appscode/kutil/tools/cli"
11-
api "github.com/appscode/stash/apis/stash/v1alpha1"
11+
"github.com/appscode/stash/apis"
1212
"github.com/appscode/stash/client/clientset/versioned/scheme"
1313
"github.com/appscode/stash/pkg/util"
1414
"github.com/spf13/cobra"
@@ -37,7 +37,7 @@ func NewRootCmd() *cobra.Command {
3737
flag.CommandLine.Parse([]string{})
3838
rootCmd.PersistentFlags().StringVar(&util.ServiceName, "service-name", "stash-operator", "Stash service name.")
3939
rootCmd.PersistentFlags().BoolVar(&cli.EnableAnalytics, "enable-analytics", cli.EnableAnalytics, "Send analytical events to Google Analytics")
40-
rootCmd.PersistentFlags().BoolVar(&api.EnableStatusSubresource, "enable-status-subresource", api.EnableStatusSubresource, "If true, uses sub resource for crds.")
40+
rootCmd.PersistentFlags().BoolVar(&apis.EnableStatusSubresource, "enable-status-subresource", apis.EnableStatusSubresource, "If true, uses sub resource for crds.")
4141

4242
rootCmd.AddCommand(v.NewCmdVersion())
4343
stopCh := genericapiserver.SetupSignalHandler()

server/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
stringz "github.com/appscode/go/strings"
88
v "github.com/appscode/go/version"
9-
api "github.com/appscode/stash/apis/stash/v1alpha1"
9+
"github.com/appscode/stash/apis"
1010
cs "github.com/appscode/stash/client/clientset/versioned"
1111
"github.com/appscode/stash/pkg/controller"
1212
"github.com/appscode/stash/pkg/docker"
@@ -54,7 +54,7 @@ func (s *ExtraOptions) AddGoFlags(fs *flag.FlagSet) {
5454

5555
fs.BoolVar(&s.EnableMutatingWebhook, "enable-mutating-webhook", s.EnableMutatingWebhook, "If true, enables mutating webhooks for KubeDB CRDs.")
5656
fs.BoolVar(&s.EnableValidatingWebhook, "enable-validating-webhook", s.EnableValidatingWebhook, "If true, enables validating webhooks for KubeDB CRDs.")
57-
fs.BoolVar(&api.EnableStatusSubresource, "enable-status-subresource", api.EnableStatusSubresource, "If true, uses sub resource for KubeDB crds.")
57+
fs.BoolVar(&apis.EnableStatusSubresource, "enable-status-subresource", apis.EnableStatusSubresource, "If true, uses sub resource for KubeDB crds.")
5858

5959
}
6060

0 commit comments

Comments
 (0)