Merge pull request #687 from smartding/fix-typo
resetConfig should be restConfig
This commit is contained in:
commit
2feff86640
|
@ -100,9 +100,9 @@ func Run(ctx context.Context, opts *options.Options) error {
|
||||||
// Note: ignore cyclomatic complexity check(by gocyclo) because it will not effect readability.
|
// Note: ignore cyclomatic complexity check(by gocyclo) because it will not effect readability.
|
||||||
//nolint:gocyclo
|
//nolint:gocyclo
|
||||||
func setupControllers(mgr controllerruntime.Manager, opts *options.Options, stopChan <-chan struct{}) {
|
func setupControllers(mgr controllerruntime.Manager, opts *options.Options, stopChan <-chan struct{}) {
|
||||||
resetConfig := mgr.GetConfig()
|
restConfig := mgr.GetConfig()
|
||||||
dynamicClientSet := dynamic.NewForConfigOrDie(resetConfig)
|
dynamicClientSet := dynamic.NewForConfigOrDie(restConfig)
|
||||||
discoverClientSet := discovery.NewDiscoveryClientForConfigOrDie(resetConfig)
|
discoverClientSet := discovery.NewDiscoveryClientForConfigOrDie(restConfig)
|
||||||
objectWatcher := objectwatcher.NewObjectWatcher(mgr.GetClient(), mgr.GetRESTMapper(), util.NewClusterDynamicClientSet)
|
objectWatcher := objectwatcher.NewObjectWatcher(mgr.GetClient(), mgr.GetRESTMapper(), util.NewClusterDynamicClientSet)
|
||||||
overrideManager := overridemanager.New(mgr.GetClient())
|
overrideManager := overridemanager.New(mgr.GetClient())
|
||||||
skippedResourceConfig := util.NewSkippedResourceConfig()
|
skippedResourceConfig := util.NewSkippedResourceConfig()
|
||||||
|
|
Loading…
Reference in New Issue