Skip to content

Commit

Permalink
Merge pull request #1244 from christopherhein/chore/alias-forconfigfile
Browse files Browse the repository at this point in the history
✨ ComponentConfig alias for cfg.File()
  • Loading branch information
k8s-ci-robot committed Nov 4, 2020
2 parents 582b82e + 94c570c commit af24f3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions alias.go
Expand Up @@ -21,6 +21,7 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/controller-runtime/pkg/builder"
"sigs.k8s.io/controller-runtime/pkg/client/config"
cfg "sigs.k8s.io/controller-runtime/pkg/config"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
"sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/manager"
Expand Down Expand Up @@ -91,6 +92,11 @@ var (
// * $HOME/.kube/config if exists
GetConfig = config.GetConfig

// ConfigFile returns the cfg.File function for deferred config file loading,
// this is passed into Options{}.From() to populate the Options fields for
// the manager.
ConfigFile = cfg.File

// NewControllerManagedBy returns a new controller builder that will be started by the provided Manager
NewControllerManagedBy = builder.ControllerManagedBy

Expand Down

0 comments on commit af24f3b

Please sign in to comment.