File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
16
16
"github.com/spf13/pflag"
17
17
genericapiserver "k8s.io/apiserver/pkg/server"
18
18
clientsetscheme "k8s.io/client-go/kubernetes/scheme"
19
+ "k8s.io/kubernetes/pkg/api/legacyscheme"
19
20
)
20
21
21
22
const (
@@ -41,6 +42,7 @@ func NewRootCmd() *cobra.Command {
41
42
}
42
43
}
43
44
scheme .AddToScheme (clientsetscheme .Scheme )
45
+ scheme .AddToScheme (legacyscheme .Scheme )
44
46
util .LoggerOptions = golog .ParseFlags (c .Flags ())
45
47
},
46
48
}
Original file line number Diff line number Diff line change 6
6
7
7
stringz "github.com/appscode/go/strings"
8
8
v "github.com/appscode/go/version"
9
- hookapi "github.com/appscode/kutil/admission/api"
10
9
cs "github.com/appscode/stash/client/clientset/versioned"
11
- "github.com/appscode/stash/pkg/admission/plugin"
12
10
"github.com/appscode/stash/pkg/controller"
13
11
"github.com/appscode/stash/pkg/docker"
14
12
"github.com/spf13/pflag"
@@ -74,7 +72,5 @@ func (s *ControllerOptions) ApplyTo(cfg *controller.ControllerConfig) error {
74
72
if cfg .CRDClient , err = crd_cs .NewForConfig (cfg .ClientConfig ); err != nil {
75
73
return err
76
74
}
77
- cfg .AdmissionHooks = []hookapi.AdmissionHook {& plugin.CRDValidator {}}
78
-
79
75
return nil
80
76
}
You can’t perform that action at this time.
0 commit comments