@@ -8,14 +8,14 @@ import (
8
8
"github.com/appscode/go/log"
9
9
stringz "github.com/appscode/go/strings"
10
10
"github.com/appscode/pat"
11
- sapi "github.com/appscode/stash/apis/stash"
11
+ api "github.com/appscode/stash/apis/stash"
12
12
cs "github.com/appscode/stash/client/typed/stash/v1alpha1"
13
13
"github.com/appscode/stash/pkg/controller"
14
14
"github.com/appscode/stash/pkg/docker"
15
15
"github.com/appscode/stash/pkg/migrator"
16
16
"github.com/prometheus/client_golang/prometheus/promhttp"
17
17
"github.com/spf13/cobra"
18
- apiextensionsclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
18
+ crd_cs "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1 "
19
19
"k8s.io/client-go/kubernetes"
20
20
"k8s.io/client-go/tools/clientcmd"
21
21
)
@@ -54,7 +54,7 @@ func NewCmdRun(version string) *cobra.Command {
54
54
}
55
55
kubeClient = kubernetes .NewForConfigOrDie (config )
56
56
stashClient = cs .NewForConfigOrDie (config )
57
- crdClient := apiextensionsclient .NewForConfigOrDie (config )
57
+ crdClient := crd_cs .NewForConfigOrDie (config )
58
58
59
59
ctrl := controller .New (kubeClient , crdClient , stashClient , opts )
60
60
err = ctrl .Setup ()
@@ -75,7 +75,7 @@ func NewCmdRun(version string) *cobra.Command {
75
75
m := pat .New ()
76
76
m .Get ("/metrics" , promhttp .Handler ())
77
77
78
- pattern := fmt .Sprintf ("/%s/v1beta1/namespaces/%s/restics/%s/metrics" , sapi .GroupName , PathParamNamespace , PathParamName )
78
+ pattern := fmt .Sprintf ("/%s/v1beta1/namespaces/%s/restics/%s/metrics" , api .GroupName , PathParamNamespace , PathParamName )
79
79
log .Infof ("URL pattern: %s" , pattern )
80
80
m .Get (pattern , http .HandlerFunc (ExportSnapshots ))
81
81
0 commit comments