diff --git a/pkg/reconciler/openshift/tektonaddon/tektonaddon.go b/pkg/reconciler/openshift/tektonaddon/tektonaddon.go index 0dc49c8a3f..07a19cfc2f 100644 --- a/pkg/reconciler/openshift/tektonaddon/tektonaddon.go +++ b/pkg/reconciler/openshift/tektonaddon/tektonaddon.go @@ -150,6 +150,10 @@ func (r *Reconciler) ReconcileKind(ctx context.Context, ta *v1alpha1.TektonAddon // Pass the object through defaulting ta.SetDefaults(ctx) + if err := tektoninstallerset.CleanUpObsoleteResources(ctx, r.operatorClientSet, CreatedByValue); err != nil { + return err + } + // validate the params ptVal, _ := findValue(ta.Spec.Params, v1alpha1.PipelineTemplatesParam) ctVal, _ := findValue(ta.Spec.Params, v1alpha1.ClusterTasksParam)