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

✨ Update to newer kcp apimachinery, logicalcluster packages #27

Merged
merged 1 commit into from Oct 6, 2022

Conversation

fgiloux
Copy link

@fgiloux fgiloux commented Sep 30, 2022

This brings controller-runtime to the latest kcp versions and go 1.18:

  • github.com/kcp-dev/apimachinery v0.0.0-20220922165458-607ac5e87531
  • github.com/kcp-dev/logicalcluster/v2 v2.0.0-alpha.3

With the new version an issue with list appeared where the index name used for the search has a trailing piple "|". A fix for it is also part of the PR.

Signed-off-by: Frederic Giloux fgiloux@redhat.com

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 30, 2022
@openshift-ci
Copy link

openshift-ci bot commented Sep 30, 2022

Hi @fgiloux. Thanks for your PR.

I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 30, 2022
@fgiloux
Copy link
Author

fgiloux commented Oct 4, 2022

/retest

@openshift-ci
Copy link

openshift-ci bot commented Oct 4, 2022

@fgiloux: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@fgiloux
Copy link
Author

fgiloux commented Oct 4, 2022

@stevekuznetsov @varshaprasad96 anything blocking the PR?
It seems that the CI test failure is not related to the code change and I don't have enough rights to trigger a retest

@ncdc
Copy link
Member

ncdc commented Oct 4, 2022

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 4, 2022
@ncdc
Copy link
Member

ncdc commented Oct 4, 2022

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 4, 2022
@ncdc
Copy link
Member

ncdc commented Oct 4, 2022

The test failures are because of the upgrade to go 1.18. If you want to make that change, we'll either need to cherry-pick whatever fixed it upstream, or add an UPSTREAM: <drop>: fix go 1.18 lint errors commit w/the fixes.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 5, 2022
@fgiloux
Copy link
Author

fgiloux commented Oct 5, 2022

The test failures are because of the upgrade to go 1.18

Thank you for pointing that out. I have cherry picked the upstream change related to the upgrade of controller-runtime from 1.17 to 1.19 (they never had 1.18).

My original idea was to align the go version here with the version used in other kcp repositories. I am not sure anymore that it is a good idea due to the divergence with the controller-runtime version. Thoughts?

@stevekuznetsov
Copy link

Let's align this with upstream controller-runtime

- github.com/kcp-dev/apimachinery v0.0.0-20220922165458-607ac5e87531
- github.com/kcp-dev/logicalcluster/v2 v2.0.0-alpha.3
Fix wrong index name for list calls (trailing |)

Signed-off-by: Frederic Giloux <fgiloux@redhat.com>
@fgiloux
Copy link
Author

fgiloux commented Oct 5, 2022

Let's align this with upstream controller-runtime

ack. I reverted to go 1.17

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 6, 2022
@openshift-ci
Copy link

openshift-ci bot commented Oct 6, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ncdc, stevekuznetsov

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

@ncdc ncdc changed the title ✨ Version bump ✨ Update to newer kcp apimachinery, logicalcluster packages Oct 6, 2022
@ncdc
Copy link
Member

ncdc commented Oct 6, 2022

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 6, 2022
@openshift-merge-robot openshift-merge-robot merged commit d4b60ce into kcp-dev:kcp-1.24 Oct 6, 2022
@fgiloux fgiloux deleted the bump branch October 6, 2022 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants