Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Don't register any types into the client-go scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
luxas authored and twelho committed Jul 31, 2020
1 parent 41856d1 commit 8f39136
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cmd/wksctl/main.go
Expand Up @@ -6,8 +6,6 @@ import (
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/weaveworks/go-checkpoint"
"k8s.io/client-go/kubernetes/scheme"
clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha3"

"github.com/weaveworks/wksctl/cmd/wksctl/addon"
"github.com/weaveworks/wksctl/cmd/wksctl/apply"
Expand Down Expand Up @@ -45,13 +43,6 @@ func configureLogger(cmd *cobra.Command, args []string) {
}

func main() {
if err := clusterv1.AddToScheme(scheme.Scheme); err != nil {
log.Fatal(err)
}
if err := existinginfrav1.AddToScheme(scheme.Scheme); err != nil {
log.Fatal(err)
}

rootCmd.PersistentFlags().BoolVarP(&options.verbose, "verbose", "v", false, "Enable verbose output")

rootCmd.AddCommand(addon.Cmd)
Expand Down

0 comments on commit 8f39136

Please sign in to comment.