Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Add entire k8s scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
timebertt committed Feb 18, 2021
1 parent e72de7f commit bc95e47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"time"

"github.com/spf13/pflag"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/client-go/kubernetes"
kubernetesscheme "k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
"sigs.k8s.io/controller-runtime/pkg/client/config"
Expand Down Expand Up @@ -90,7 +90,7 @@ func (o *SourceClientOptions) Completed() *SourceClientConfig {

func getSourceScheme() *runtime.Scheme {
scheme := runtime.NewScheme()
utilruntime.Must(corev1.AddToScheme(scheme))
utilruntime.Must(kubernetesscheme.AddToScheme(scheme))
utilruntime.Must(resourcesv1alpha1.AddToScheme(scheme))
return scheme
}
Expand Down

0 comments on commit bc95e47

Please sign in to comment.