File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import (
21
21
"k8s.io/apimachinery/pkg/runtime/schema"
22
22
"sigs.k8s.io/controller-runtime/pkg/builder"
23
23
"sigs.k8s.io/controller-runtime/pkg/client/config"
24
+ cfg "sigs.k8s.io/controller-runtime/pkg/config"
24
25
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
25
26
"sigs.k8s.io/controller-runtime/pkg/log"
26
27
"sigs.k8s.io/controller-runtime/pkg/manager"
91
92
// * $HOME/.kube/config if exists
92
93
GetConfig = config .GetConfig
93
94
95
+ // ConfigFile returns the cfg.File function for deferred config file loading,
96
+ // this is passed into Options{}.From() to populate the Options fields for
97
+ // the manager.
98
+ ConfigFile = cfg .File
99
+
94
100
// NewControllerManagedBy returns a new controller builder that will be started by the provided Manager
95
101
NewControllerManagedBy = builder .ControllerManagedBy
96
102
You can’t perform that action at this time.
0 commit comments