Skip to content

Commit 4e00700

Browse files
committed
feat(operator): enable configmaps to be operator components
- Add ConfigMaps to the set of resource types that can be Operator components (tracked by the controller) - Remove extra comment - Remove unused dynamic source implementation
1 parent 47ccb86 commit 4e00700

File tree

3 files changed

+2
-178
lines changed

3 files changed

+2
-178
lines changed

pkg/controller/operators/operator_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func (r *OperatorReconciler) SetupWithManager(mgr ctrl.Manager) error {
8888
Watches(&source.Kind{Type: &corev1.Namespace{}}, enqueueOperator).
8989
Watches(&source.Kind{Type: &corev1.ServiceAccount{}}, enqueueOperator).
9090
Watches(&source.Kind{Type: &corev1.Secret{}}, enqueueOperator).
91+
Watches(&source.Kind{Type: &corev1.ConfigMap{}}, enqueueOperator).
9192
Watches(&source.Kind{Type: &rbacv1.Role{}}, enqueueOperator).
9293
Watches(&source.Kind{Type: &rbacv1.RoleBinding{}}, enqueueOperator).
9394
Watches(&source.Kind{Type: &rbacv1.ClusterRole{}}, enqueueOperator).
@@ -194,6 +195,7 @@ func (r *OperatorReconciler) listComponents(ctx context.Context, selector labels
194195
&corev1.NamespaceList{},
195196
&corev1.ServiceAccountList{},
196197
&corev1.SecretList{},
198+
&corev1.ConfigMapList{},
197199
&rbacv1.RoleList{},
198200
&rbacv1.RoleBindingList{},
199201
&rbacv1.ClusterRoleList{},

pkg/feature/feature.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,5 @@ func AddFlag(fs *pflag.FlagSet) {
3535
}
3636

3737
var featureGates = map[featuregate.Feature]featuregate.FeatureSpec{
38-
// OperatorLifecycleManagerV2: {Default: false, PreRelease: featuregate.Alpha},
3938
OperatorLifecycleManagerV2: {Default: false, PreRelease: featuregate.Alpha},
4039
}

pkg/lib/controller-runtime/source/dynamic.go

Lines changed: 0 additions & 177 deletions
This file was deleted.

0 commit comments

Comments
 (0)