@@ -32,12 +32,12 @@ func init() {
32
32
_ = v1alpha1 .AddToScheme (scheme )
33
33
}
34
34
35
- // This example will load a file using GetControllerManagerConfiguration with only
35
+ // This example will load a file using Complete with only
36
36
// defaults set.
37
37
func ExampleFile () {
38
38
// This will load a config file from ./config.yaml
39
39
loader := config .File ()
40
- _ , err := loader .GetControllerManagerConfiguration ()
40
+ _ , err := loader .Complete ()
41
41
if err != nil {
42
42
fmt .Println ("failed to load config" )
43
43
os .Exit (1 )
@@ -47,7 +47,7 @@ func ExampleFile() {
47
47
// This example will load the file from a custom path
48
48
func ExampleDeferredFileLoader_atPath () {
49
49
loader := config .File ().AtPath ("/var/run/controller-runtime/config.yaml" )
50
- _ , err := loader .GetControllerManagerConfiguration ()
50
+ _ , err := loader .Complete ()
51
51
if err != nil {
52
52
fmt .Println ("failed to load config" )
53
53
os .Exit (1 )
@@ -63,7 +63,7 @@ func ExampleDeferredFileLoader_injectScheme() {
63
63
os .Exit (1 )
64
64
}
65
65
66
- _ , err = loader .GetControllerManagerConfiguration ()
66
+ _ , err = loader .Complete ()
67
67
if err != nil {
68
68
fmt .Println ("failed to load config" )
69
69
os .Exit (1 )
@@ -78,7 +78,7 @@ func ExampleDeferredFileLoader_ofKind() {
78
78
fmt .Println ("failed to inject scheme" )
79
79
os .Exit (1 )
80
80
}
81
- _ , err = loader .GetControllerManagerConfiguration ()
81
+ _ , err = loader .Complete ()
82
82
if err != nil {
83
83
fmt .Println ("failed to load config" )
84
84
os .Exit (1 )
0 commit comments