Skip to content

Commit

Permalink
add apiextensionsv1beta1 to scheme (#904) (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
alenkacz authored Oct 8, 2019
1 parent b48cef3 commit d81e57e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/kudobuilder/kudo/pkg/controller/operator"
"github.com/kudobuilder/kudo/pkg/controller/operatorversion"
"github.com/kudobuilder/kudo/pkg/version"
apiextenstionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"

_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
ctrl "sigs.k8s.io/controller-runtime"
Expand All @@ -48,10 +49,15 @@ func main() {
log.Info("Registering Components.")

log.Info("setting up scheme")

if err := apis.AddToScheme(mgr.GetScheme()); err != nil {
log.Error(err, "unable add APIs to scheme")
}

if err := apiextenstionsv1beta1.AddToScheme(mgr.GetScheme()); err != nil {
log.Error(err, "unable to add extension APIs to scheme")
}

// Setup all Controllers

log.Info("Setting up operator controller")
Expand Down

0 comments on commit d81e57e

Please sign in to comment.