Skip to content

Commit

Permalink
fix: added Service and ServiceMonitor to DSP controller Owns list
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelahunt committed Nov 5, 2024
1 parent e56d1e0 commit 836fa5d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/reconciler"
odhdeploy "github.com/opendatahub-io/opendatahub-operator/v2/pkg/deploy"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/metadata/labels"
monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
)

var (
Expand All @@ -55,6 +56,8 @@ func NewComponentReconciler(ctx context.Context, mgr ctrl.Manager) error {
Owns(&rbacv1.Role{}).
Owns(&rbacv1.RoleBinding{}).
Owns(&corev1.ServiceAccount{}).
Owns(&corev1.Service{}).
Owns(&monitoringv1.ServiceMonitor{}).
Owns(&appsv1.Deployment{}, builder.WithPredicates(resources.NewDeploymentPredicate())).
Owns(&securityv1.SecurityContextConstraints{}).
Watches(&extv1.CustomResourceDefinition{}). // call ForLabel() + new predicates
Expand Down

0 comments on commit 836fa5d

Please sign in to comment.