Skip to content

Commit 4ffd908

Browse files
authored
Merge pull request #1102 from vincepri/remove-deprecated-builder-funs
⚠️ Remove deprecated For/WithConfig from controller builder
2 parents 9b722b0 + 2c43aab commit 4ffd908

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pkg/builder/controller.go

-18
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ func ControllerManagedBy(m manager.Manager) *Builder {
5656
return &Builder{mgr: m}
5757
}
5858

59-
// ForType defines the type of Object being *reconciled*, and configures the ControllerManagedBy to respond to create / delete /
60-
// update events by *reconciling the object*.
61-
// This is the equivalent of calling
62-
// Watches(&source.Kind{Type: apiType}, &handler.EnqueueRequestForObject{})
63-
//
64-
// Deprecated: Use For
65-
func (blder *Builder) ForType(apiType runtime.Object) *Builder {
66-
return blder.For(apiType)
67-
}
68-
6959
// ForInput represents the information set by For method.
7060
type ForInput struct {
7161
object runtime.Object
@@ -125,14 +115,6 @@ func (blder *Builder) Watches(src source.Source, eventhandler handler.EventHandl
125115
return blder
126116
}
127117

128-
// WithConfig sets the Config to use for configuring clients. Defaults to the in-cluster config or to ~/.kube/config.
129-
//
130-
// Deprecated: Use ControllerManagedBy(Manager) and this isn't needed.
131-
func (blder *Builder) WithConfig(config *rest.Config) *Builder {
132-
blder.config = config
133-
return blder
134-
}
135-
136118
// WithEventFilter sets the event filters, to filter which create/update/delete/generic events eventually
137119
// trigger reconciliations. For example, filtering on whether the resource version has changed.
138120
// Given predicate is added for all watched objects.

0 commit comments

Comments
 (0)