@@ -24,24 +24,20 @@ import (
24
24
"k8s.io/apimachinery/pkg/runtime"
25
25
"k8s.io/apimachinery/pkg/runtime/serializer"
26
26
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
27
- "sigs.k8s.io/controller-runtime/pkg/config/v1alpha1" //nolint:staticcheck
27
+ "sigs.k8s.io/controller-runtime/pkg/config/v1alpha1"
28
28
)
29
29
30
30
// ControllerManagerConfiguration defines the functions necessary to parse a config file
31
31
// and to configure the Options struct for the ctrl.Manager.
32
- //
33
- // Deprecated: This package has been deprecated and will be removed in a future release.
34
32
type ControllerManagerConfiguration interface {
35
33
runtime.Object
36
34
37
35
// Complete returns the versioned configuration
38
- Complete () (v1alpha1.ControllerManagerConfigurationSpec , error ) //nolint:staticcheck
36
+ Complete () (v1alpha1.ControllerManagerConfigurationSpec , error )
39
37
}
40
38
41
39
// DeferredFileLoader is used to configure the decoder for loading controller
42
40
// runtime component config types.
43
- //
44
- // Deprecated: This package has been deprecated and will be removed in a future release.
45
41
type DeferredFileLoader struct {
46
42
ControllerManagerConfiguration
47
43
path string
@@ -56,8 +52,6 @@ type DeferredFileLoader struct {
56
52
// Defaults:
57
53
// * Path: "./config.yaml"
58
54
// * Kind: GenericControllerManagerConfiguration
59
- //
60
- // Deprecated: This package has been deprecated and will be removed in a future release.
61
55
func File () * DeferredFileLoader {
62
56
scheme := runtime .NewScheme ()
63
57
utilruntime .Must (v1alpha1 .AddToScheme (scheme ))
@@ -69,8 +63,6 @@ func File() *DeferredFileLoader {
69
63
}
70
64
71
65
// Complete will use sync.Once to set the scheme.
72
- //
73
- // Deprecated: This package has been deprecated and will be removed in a future release.
74
66
func (d * DeferredFileLoader ) Complete () (v1alpha1.ControllerManagerConfigurationSpec , error ) {
75
67
d .once .Do (d .loadFile )
76
68
if d .err != nil {
@@ -79,33 +71,25 @@ func (d *DeferredFileLoader) Complete() (v1alpha1.ControllerManagerConfiguration
79
71
return d .ControllerManagerConfiguration .Complete ()
80
72
}
81
73
82
- // AtPath will set the path to load the file for the decoder
83
- //
84
- // Deprecated: This package has been deprecated and will be removed in a future release.
74
+ // AtPath will set the path to load the file for the decoder.
85
75
func (d * DeferredFileLoader ) AtPath (path string ) * DeferredFileLoader {
86
76
d .path = path
87
77
return d
88
78
}
89
79
90
80
// OfKind will set the type to be used for decoding the file into.
91
- //
92
- // Deprecated: This package has been deprecated and will be removed in a future release.
93
81
func (d * DeferredFileLoader ) OfKind (obj ControllerManagerConfiguration ) * DeferredFileLoader {
94
82
d .ControllerManagerConfiguration = obj
95
83
return d
96
84
}
97
85
98
86
// InjectScheme will configure the scheme to be used for decoding the file.
99
- //
100
- // Deprecated: This package has been deprecated and will be removed in a future release.
101
87
func (d * DeferredFileLoader ) InjectScheme (scheme * runtime.Scheme ) error {
102
88
d .scheme = scheme
103
89
return nil
104
90
}
105
91
106
92
// loadFile is used from the mutex.Once to load the file.
107
- //
108
- // Deprecated: This package has been deprecated and will be removed in a future release.
109
93
func (d * DeferredFileLoader ) loadFile () {
110
94
if d .scheme == nil {
111
95
d .err = fmt .Errorf ("scheme not supplied to controller configuration loader" )
0 commit comments