Skip to content

Commit

Permalink
remove generation changed predicate
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
  • Loading branch information
joelanford committed Jun 16, 2023
1 parent 2d94e2d commit ecbe0af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/controllers/core/catalog_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ import (
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/utils/pointer"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/builder"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/predicate"

"github.com/operator-framework/catalogd/api/core/v1alpha1"
"github.com/operator-framework/catalogd/internal/source"
Expand Down Expand Up @@ -106,7 +104,7 @@ func (r *CatalogReconciler) SetupWithManager(mgr ctrl.Manager) error {
// even though they already exist. This should be resolved by the fix
// for https://github.com/operator-framework/catalogd/issues/6. The fix for
// #6 should also remove the usage of `builder.WithPredicates(predicate.GenerationChangedPredicate{})`
For(&v1alpha1.Catalog{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).
For(&v1alpha1.Catalog{}).
Owns(&corev1.Pod{}).
Complete(r)
}
Expand Down

0 comments on commit ecbe0af

Please sign in to comment.