Skip to content

Commit

Permalink
Drop custom predicateutils.Or function (#6364)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranzke committed Jul 21, 2022
1 parent 3b823f2 commit f7ee6a4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 142 deletions.
3 changes: 1 addition & 2 deletions extensions/pkg/controller/dnsrecord/controller.go
Expand Up @@ -24,7 +24,6 @@ import (
extensionspredicate "github.com/gardener/gardener/extensions/pkg/predicate"
extensionsv1alpha1 "github.com/gardener/gardener/pkg/apis/extensions/v1alpha1"
"github.com/gardener/gardener/pkg/controllerutils/mapper"
predicateutils "github.com/gardener/gardener/pkg/controllerutils/predicate"
)

const (
Expand Down Expand Up @@ -60,7 +59,7 @@ func DefaultPredicates(ignoreOperationAnnotation bool) []predicate.Predicate {
// 'garden' namespace and don't belong to a Shoot. Most other DNSRecord resources are created in regular shoot
// namespaces (in such cases we want to check whether the respective Shoot is failed). Consequently, we add both
// preconditions and ensure at least one of them applies.
predicateutils.Or(
predicate.Or(
extensionspredicate.IsInGardenNamespacePredicate,
extensionspredicate.ShootNotFailedPredicate(),
),
Expand Down
77 changes: 0 additions & 77 deletions pkg/controllerutils/predicate/or.go

This file was deleted.

63 changes: 0 additions & 63 deletions pkg/controllerutils/predicate/or_test.go

This file was deleted.

0 comments on commit f7ee6a4

Please sign in to comment.