Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] Bump code dependencies to 1.13 #2573

Closed
wants to merge 19 commits into from

Conversation

ReToCode
Copy link
Member

@ReToCode ReToCode commented Mar 19, 2024

⚠️ See the separated commits for easier review (and because the GH UI dies if you open without filter 🤷)

Basic changes

  • Bump version of dependants to 1.12 (pointing to midstream 1.12 branches which are 1.13). So this is aligned with the yamls.
  • Bump operator to version 1.13 (as this is from upstream)
  • Re-order the dependencies to update upstream deps first. Otherwise the script was failing, as eventing deps depend on newer upstream deps.

Changes because of golang deps

  • kafka_source.go upstream uses a function from apimachinery 0.27.x (see slack discussion)
  • Bumping apimachinery to 1.27 requires controller-runtime to be at least 0.15.x
  • controller-runtime 0.15.x has major interface changes, see release notes
  • Bumped kube-openapi to version that is defined in apimachinery
  • Bumped K8s deps to 0.26.x to be aligned with apimachinery minus one version to also not be too far away from our 1.25 K8s version coming from OCP 4.12
  • Updated the 006-version.patch to new controller-runtime version.

/assign @skonto
/assign @creydr
/assign @mgencur
/assign @matzew
/assign @pierDipi

Copy link
Contributor

openshift-ci bot commented Mar 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ReToCode

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


diff --git a/vendor/sigs.k8s.io/controller-runtime/pkg/client/config/config.go b/vendor/sigs.k8s.io/controller-runtime/pkg/client/config/config.go
index fd2772412..54aab6c3d 100644
--- a/vendor/sigs.k8s.io/controller-runtime/pkg/client/config/config.go
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK this is no longer needed. But it might be good if someone can take another look.

"knative.dev/pkg=knative.dev/pkg@${KN_VERSION}"
"knative.dev/hack=knative.dev/hack@${KN_VERSION}"
"knative.dev/networking=knative.dev/networking@${KN_VERSION}"
"knative.dev/reconciler-test=knative.dev/reconciler-test@${KN_VERSION}"
"knative.dev/eventing-kafka-broker=github.com/openshift-knative/eventing-kafka-broker@${EVENTING_KAFKA_BROKER_VERSION}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reordered to make sure the script runs. Eventing deps need new version of upstream deps first

@@ -66,13 +66,25 @@ func main() {
os.Exit(1)
}

// Setup all Webhooks
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not longer exposed, to have a "custom" webhook, one needs to create it upfront and pass it to the manager. IMHO, might be good if somebody else can cross-check.

@ReToCode ReToCode force-pushed the bump-operator-code-13 branch from fea3718 to 8224d03 Compare March 21, 2024 12:14
@@ -44,7 +46,11 @@ func (r *Reconciler) handleTLSResources(ctx context.Context, manifests *mf.Manif
// Delete TLS resources (if present)
toBeDeleted := manifests.Filter(tlsResourcesPred)
if err := toBeDeleted.Delete(mf.IgnoreNotFound(true)); err != nil && !meta.IsNoMatchError(err) {
return fmt.Errorf("failed to delete TLS resources: %v", err)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how this worked before, if CRDs are not installed, this will error out and not filter out the eventing manifests (below). With this, no resources in knative-eventing were created in make test-e2e. The current change is only here to test, we should do this upstream, if it works. cc @creydr @matzew @pierDipi @maschmid

related to https://issues.redhat.com/browse/SRVKE-1595

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to myself, maybe the new client returns a different error that is not handled by IsNoMatchError? In debug I see it is a groupDiscoveryError.

Copy link
Member

@pierDipi pierDipi Mar 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://issues.redhat.com/browse/SRVKE-1595 is just a warning not affecting functionality.

I'm not sure I understand what is the real issue here as upstream and previous version works

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the error is different with the new clients, I think we need to understand why and if it is intended or not

@openshift-knative openshift-knative deleted a comment from openshift-ci bot Mar 21, 2024
@openshift-knative openshift-knative deleted a comment from mgencur Mar 21, 2024
@openshift-knative openshift-knative deleted a comment from mgencur Mar 21, 2024
@openshift-knative openshift-knative deleted a comment from openshift-ci bot Mar 21, 2024
@ReToCode
Copy link
Member Author

/test ?

@ReToCode
Copy link
Member Author

/test 415-mesh-e2e-aws-415

/test 415-mesh-upgrade-aws-415

/test 415-upstream-e2e-aws-415

/test 415-upstream-e2e-kafka-aws-415

/test 415-operator-e2e-aws-415

@ReToCode
Copy link
Member Author

/test 415-operator-e2e-aws-415

Copy link
Contributor

openshift-ci bot commented Mar 22, 2024

@ReToCode: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/415-upstream-e2e-kafka-aws-415 8224d03 link false /test 415-upstream-e2e-kafka-aws-415
ci/prow/415-mesh-upgrade-aws-415 8224d03 link false /test 415-mesh-upgrade-aws-415
ci/prow/415-upstream-e2e-aws-415 8224d03 link false /test 415-upstream-e2e-aws-415
ci/prow/415-mesh-e2e-aws-415 8224d03 link false /test 415-mesh-e2e-aws-415
ci/prow/415-operator-e2e-aws-415 8224d03 link true /test 415-operator-e2e-aws-415

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ReToCode
Copy link
Member Author

ReToCode commented Mar 22, 2024

Seems like KnativeEventing now works, but EventingKafka has a similar problem:

{"level":"error","ts":"2024-03-22T07:04:32.701Z","msg":"Reconciler error","controller":"knativekafka-controller","object":{"name":"knative-kafka","namespace":"knative-eventing"},"namespace":"knative-eventing","name":"knative-kafka","reconcileID":"3b140e55-86f7-45ea-83b2-df96699aeb25","error":"failed to delete TLS resources: failed to get API group resources: unable to retrieve the complete list of server APIs: cert-manager.io/v1: the server could not find the requested resource","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/src/github.com/openshift-knative/serverless-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/openshift-knative/serverless-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/src/github.com/openshift-knative/serverless-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:226"}
{"level":"info","ts":"2024-03-22T07:07:16.541Z","logger":"controller_knativekafka","msg":"Reconciling KnativeKafka","Request.Namespace":"knative-eventing","Request.Name":"knative-kafka"}

Reconciler error this aborts reconciliation and ends up not creating the Knative Kafka resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants