diff --git a/internal/controller/cache/cache.go b/internal/controller/cache/cache.go index f857c81d..3df6033b 100644 --- a/internal/controller/cache/cache.go +++ b/internal/controller/cache/cache.go @@ -28,6 +28,9 @@ func applySelectors(options cache.Options) cache.Options { &appsv1.Deployment{}: managedByNATS, &appsv1.StatefulSet{}: managedByNATS, &corev1.ServiceAccount{}: managedByNATS, + &corev1.Secret{}: managedByNATS, + &corev1.Service{}: managedByNATS, + &corev1.ConfigMap{}: managedByNATS, &rbacv1.ClusterRole{}: managedByNATS, &rbacv1.ClusterRoleBinding{}: managedByNATS, &autoscalingv1.HorizontalPodAutoscaler{}: managedByNATS, diff --git a/internal/controller/cache/cache_test.go b/internal/controller/cache/cache_test.go index 76a71a66..367b2abe 100644 --- a/internal/controller/cache/cache_test.go +++ b/internal/controller/cache/cache_test.go @@ -47,6 +47,9 @@ func Test_applySelectors(t *testing.T) { &appsv1.Deployment{}: selector, &appsv1.StatefulSet{}: selector, &corev1.ServiceAccount{}: selector, + &corev1.Secret{}: selector, + &corev1.Service{}: selector, + &corev1.ConfigMap{}: selector, &rbacv1.ClusterRole{}: selector, &rbacv1.ClusterRoleBinding{}: selector, &autoscalingv1.HorizontalPodAutoscaler{}: selector, @@ -67,6 +70,9 @@ func Test_applySelectors(t *testing.T) { &appsv1.Deployment{}: selector, &appsv1.StatefulSet{}: selector, &corev1.ServiceAccount{}: selector, + &corev1.Secret{}: selector, + &corev1.Service{}: selector, + &corev1.ConfigMap{}: selector, &rbacv1.ClusterRole{}: selector, &rbacv1.ClusterRoleBinding{}: selector, &autoscalingv1.HorizontalPodAutoscaler{}: selector,