Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Jan 3, 2024
1 parent 3101557 commit 73511d2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions internal/controller/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cache

import (
appsv1 "k8s.io/api/apps/v1"
autoscalingv1 "k8s.io/api/autoscaling/v1"
corev1 "k8s.io/api/core/v1"
policyv1 "k8s.io/api/policy/v1"
rbacv1 "k8s.io/api/rbac/v1"
Expand All @@ -24,12 +25,13 @@ func applySelectors(options cache.Options) cache.Options {

// Apply the label selector to all relevant objects.
options.ByObject = map[client.Object]cache.ByObject{
&appsv1.Deployment{}: managedByNATS,
&appsv1.StatefulSet{}: managedByNATS,
&corev1.ServiceAccount{}: managedByNATS,
&rbacv1.ClusterRole{}: managedByNATS,
&rbacv1.ClusterRoleBinding{}: managedByNATS,
&policyv1.PodDisruptionBudget{}: managedByNATS,
&appsv1.Deployment{}: managedByNATS,
&appsv1.StatefulSet{}: managedByNATS,
&corev1.ServiceAccount{}: managedByNATS,
&rbacv1.ClusterRole{}: managedByNATS,
&rbacv1.ClusterRoleBinding{}: managedByNATS,
&autoscalingv1.HorizontalPodAutoscaler{}: managedByNATS,
&policyv1.PodDisruptionBudget{}: managedByNATS,
}
return options
}
Expand Down

0 comments on commit 73511d2

Please sign in to comment.