Skip to content

Commit

Permalink
Remove Owns for NetworkPolicy, PodMonitor and PrometheusRule
Browse files Browse the repository at this point in the history
  • Loading branch information
biswassri committed Nov 27, 2024
1 parent 0a5e77b commit 027d364
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions controllers/components/codeflare/codeflare_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ package codeflare
import (
"context"

promv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
networkingv1 "k8s.io/api/networking/v1"
rbacv1 "k8s.io/api/rbac/v1"
extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down Expand Up @@ -54,9 +52,6 @@ func (s *componentHandler) NewComponentReconciler(ctx context.Context, mgr ctrl.
Owns(&rbacv1.RoleBinding{}).
Owns(&corev1.ServiceAccount{}).
Owns(&corev1.Service{}).
Owns(&networkingv1.NetworkPolicy{}).
Owns(&promv1.PodMonitor{}).
Owns(&promv1.PrometheusRule{}).
Owns(&admissionregistrationv1.MutatingWebhookConfiguration{}).
Owns(&admissionregistrationv1.ValidatingWebhookConfiguration{}).
Owns(&appsv1.Deployment{}, reconciler.WithPredicates(resources.NewDeploymentPredicate())).
Expand Down

0 comments on commit 027d364

Please sign in to comment.