Skip to content

Commit

Permalink
Merge webhook plugins into one. (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored Jan 27, 2018
1 parent a8659fe commit 775a2b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import (
v "github.com/appscode/go/version"
"github.com/appscode/kutil/tools/analytics"
"github.com/appscode/stash/client/scheme"
"github.com/appscode/stash/pkg/admission/plugin/recovery"
"github.com/appscode/stash/pkg/admission/plugin/restic"
"github.com/appscode/stash/pkg/admission/plugin"
"github.com/appscode/stash/pkg/util"
"github.com/jpillora/go-ogle-analytics"
"github.com/openshift/generic-admission-server/pkg/cmd/server"
Expand Down Expand Up @@ -59,7 +58,7 @@ func NewRootCmd() *cobra.Command {
rootCmd.AddCommand(NewCmdCheck())

stopCh := genericapiserver.SetupSignalHandler()
cmd := server.NewCommandStartAdmissionServer(os.Stdout, os.Stderr, stopCh, &restic.AdmissionHook{}, &recovery.AdmissionHook{})
cmd := server.NewCommandStartAdmissionServer(os.Stdout, os.Stderr, stopCh, &plugin.AdmissionHook{})
cmd.Use = "admission-webhook"
rootCmd.AddCommand(cmd)

Expand Down

0 comments on commit 775a2b6

Please sign in to comment.