Skip to content

feat: update controller runtime to v0.9.5 #567

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

Merged
merged 5 commits into from
Sep 2, 2021

Conversation

JPinkney
Copy link
Contributor

What does this PR do?

This PR is the rebased version of #540. I tried to avoid overriding that one just in case something messed up.

What issues does this PR fix or reference?

#516

Is it tested? How?

Not yet so I'm leaving at WIP for now

PR Checklist

  • E2E tests pass (when PR is ready, comment /test v7-devworkspaces-operator-e2e, v7-devworkspace-happy-path to trigger)
    • v7-devworkspaces-operator-e2e: DevWorkspace e2e test
    • v7-devworkspace-happy-path: DevWorkspace e2e test

Prep code for supporting k8s 1.21:

* Add context.Context parameter to Reconcile() functions [1]
* Add RBAC get/create/update coordination.k8s.io/v1 Leases (replacing a
  configmap for leader election locks) [2]
* Adapt event handler code to reflect simplification [3]
* Adapt to apimachinery/pkg/runtime Log deprecation (replaced with
  pkg/client Log) [4]
* client.Object is preferred in favor of runtime.Object (v0.7.0 release) [5]
* Use admission/v1 instead of v1beta1 for webhook requests [6]

[1] - kubernetes-sigs/controller-runtime#1054
[2] - kubernetes-sigs/controller-runtime#1144
[3] - kubernetes-sigs/controller-runtime#1119
[4] - kubernetes-sigs/controller-runtime#1105
[5] - kubernetes-sigs/controller-runtime#898
      kubernetes-sigs/controller-runtime#1118
[6] - kubernetes-sigs/controller-runtime#1284

kubernetes-sigs/controller-runtime@a32b29d
Signed-off-by: Angel Misevski <[email protected]>
Update sigs.k8s.io/controller-runtime to version v0.9.5, and match other
dependencies to those used by controller-runtime, notably:

* k8s.io/api, k8s.io/apimachinery, k8s.io/client-go updated to v0.21.3
* Go version should be upgraded to 1.16 but isn't since there isn't a Go
  1.16 UBI image we can use as builder.

Signed-off-by: Angel Misevski <[email protected]>
@openshift-ci
Copy link

openshift-ci bot commented Aug 30, 2021

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot requested review from amisevsk and sleshchenko August 30, 2021 17:27
@JPinkney JPinkney changed the title Controller runtime update to v0.9.5 feat: Controller runtime update to v0.9.5 Aug 30, 2021
@JPinkney JPinkney marked this pull request as ready for review August 31, 2021 22:03
@JPinkney JPinkney changed the title feat: Controller runtime update to v0.9.5 feat: update controller runtime to v0.9.5 Aug 31, 2021
@JPinkney
Copy link
Contributor Author

/test v7-devworkspaces-operator-e2e

2 similar comments
@JPinkney
Copy link
Contributor Author

/test v7-devworkspaces-operator-e2e

@JPinkney
Copy link
Contributor Author

JPinkney commented Sep 1, 2021

/test v7-devworkspaces-operator-e2e

@sleshchenko
Copy link
Member

e2e test fails with

github.com/devfile/devworkspace-operator/controllers/controller/devworkspacerouting/solvers imports
sigs.k8s.io/controller-runtime/pkg/builder tested by
sigs.k8s.io/controller-runtime/pkg/builder.test imports
sigs.k8s.io/controller-runtime/pkg/internal/testing/addr imports
io/fs: malformed module path "io/fs": missing dot in first path element

@sleshchenko
Copy link
Member

I expect openshift/release#21509 to fix the e2e tests

@openshift-ci
Copy link

openshift-ci bot commented Sep 1, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JPinkney, sleshchenko

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:
  • OWNERS [JPinkney,sleshchenko]

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

@openshift-ci openshift-ci bot added the lgtm label Sep 1, 2021
@sleshchenko
Copy link
Member

/test v8-devworkspaces-operator-e2e

@sleshchenko
Copy link
Member

e2e test still fails with

github.com/devfile/devworkspace-operator/controllers/controller/devworkspacerouting/solvers imports
sigs.k8s.io/controller-runtime/pkg/builder tested by
sigs.k8s.io/controller-runtime/pkg/builder.test imports
sigs.k8s.io/controller-runtime/pkg/internal/testing/addr imports
io/fs: package io/fs is not in GOROOT (/usr/local/go/src/io/fs)

@openshift-ci openshift-ci bot removed the lgtm label Sep 1, 2021
@openshift-ci
Copy link

openshift-ci bot commented Sep 1, 2021

New changes are detected. LGTM label has been removed.

@JPinkney
Copy link
Contributor Author

JPinkney commented Sep 1, 2021

/test v8-devworkspaces-operator-e2e

@openshift-ci
Copy link

openshift-ci bot commented Sep 1, 2021

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

Test name Commit Details Rerun command
ci/prow/v7-devworkspaces-operator-e2e 458c1cd link /test v7-devworkspaces-operator-e2e

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.

@JPinkney
Copy link
Contributor Author

JPinkney commented Sep 1, 2021

/test v8-devworkspaces-operator-e2e

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

Successfully merging this pull request may close these issues.

3 participants