Skip to content

Commit

Permalink
Remove version check in KnativeEventing (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
creydr committed Feb 29, 2024
1 parent 3fd451a commit 625690a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
File renamed without changes.
15 changes: 15 additions & 0 deletions hack/patches/016-knativeeventing-remove-version-check.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/vendor/knative.dev/operator/pkg/reconciler/knativeeventing/knativeeventing.go b/vendor/knative.dev/operator/pkg/reconciler/knativeeventing/knativeeventing.go
index baf7240c6..f0d4c777d 100644
--- a/vendor/knative.dev/operator/pkg/reconciler/knativeeventing/knativeeventing.go
+++ b/vendor/knative.dev/operator/pkg/reconciler/knativeeventing/knativeeventing.go
@@ -124,10 +124,6 @@ func (r *Reconciler) ReconcileKind(ctx context.Context, ke *v1beta1.KnativeEvent

logger.Infow("Reconciling KnativeEventing", "status", ke.Status)

- if err := common.IsVersionValidMigrationEligible(ke); err != nil {
- ke.Status.MarkVersionMigrationNotEligible(err.Error())
- return nil
- }
ke.Status.MarkVersionMigrationEligible()

if err := r.extension.Reconcile(ctx, ke); err != nil {
2 changes: 1 addition & 1 deletion openshift-knative-operator/cmd/operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/openshift-knative/serverless-operator/openshift-knative-operator/pkg/eventing"
"github.com/openshift-knative/serverless-operator/openshift-knative-operator/pkg/serving"

// Force vendor this package since it's included in the patch in hack/patches/remove_eventing_ns_manifest.patch
// Force vendor this package since it's included in the patch in hack/patches/014-remove_eventing_ns_manifest.patch
_ "knative.dev/pkg/client/injection/kube/informers/core/v1/namespace"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ func (r *Reconciler) ReconcileKind(ctx context.Context, ke *v1beta1.KnativeEvent

logger.Infow("Reconciling KnativeEventing", "status", ke.Status)

if err := common.IsVersionValidMigrationEligible(ke); err != nil {
ke.Status.MarkVersionMigrationNotEligible(err.Error())
return nil
}
ke.Status.MarkVersionMigrationEligible()

if err := r.extension.Reconcile(ctx, ke); err != nil {
Expand Down

0 comments on commit 625690a

Please sign in to comment.