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

⚠️ (go/v4): upgrade controller runtime from 0.14 to 0.15 #3394

Closed

Conversation

camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented May 8, 2023

Description

This PR upgrade controller runtime from 0.14 to 0.15.
Bump declarative partner for go/v4
Ensure that new declarative versions are only used on go/v4

Motivation

Fixes: #3376

@k8s-ci-robot
Copy link
Contributor

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

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 8, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 8, 2023
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 8, 2023
@camilamacedo86 camilamacedo86 changed the title warning: bump controller runtime alpha to check breaking changes ⚠️ bump controller runtime alpha to check breaking changes May 8, 2023
@camilamacedo86 camilamacedo86 marked this pull request as ready for review May 8, 2023 07:42
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 8, 2023
@camilamacedo86 camilamacedo86 changed the title ⚠️ bump controller runtime alpha to check breaking changes ⚠️ (go/v4): upgrade controller runtime from 0.14 to 0.15 alpha May 8, 2023
@kubernetes-sigs kubernetes-sigs deleted a comment from k8s-ci-robot May 8, 2023
@camilamacedo86 camilamacedo86 added this to the v3.11.0 milestone May 8, 2023
@camilamacedo86 camilamacedo86 changed the title ⚠️ (go/v4): upgrade controller runtime from 0.14 to 0.15 alpha WIP: ⚠️ (go/v4): upgrade controller runtime from 0.14 to 0.15 alpha May 8, 2023
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 8, 2023
@camilamacedo86 camilamacedo86 force-pushed the cr-alpha branch 2 times, most recently from 060aa8c to 6dd6894 Compare May 12, 2023 08:08
@camilamacedo86
Copy link
Member Author

Closed in favor of : #3421

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Jun 9, 2023

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

Test name Commit Details Required Rerun command
pull-kubebuilder-test c0cae8f link true /test pull-kubebuilder-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@camilamacedo86 camilamacedo86 changed the title WIP: ⚠️ (go/v4): upgrade controller runtime from 0.14 to 0.15 alpha ⚠️ (go/v4): upgrade controller runtime from 0.14 to 0.15 alpha Jun 9, 2023
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 9, 2023
@camilamacedo86 camilamacedo86 changed the title ⚠️ (go/v4): upgrade controller runtime from 0.14 to 0.15 alpha ⚠️ (go/v4): upgrade controller runtime from 0.14 to 0.15 Jun 9, 2023
@kkkkun
Copy link
Member

kkkkun commented Jun 9, 2023

Should update kubebuilder-declarative-pattern to v0.13.0-beta.1.0.20230604223042-9a410556b95d
such as d5ff1ae

kbDeclarativePatternForV3V4 = "18dbaf5fcd851e6adc3f2f8a8facb669a1420797"
kbDeclarativePatternForV2 = "v0.0.0-20200522144838-848d48e5b073"
kbDeclarativePatternForV3 = "18dbaf5fcd851e6adc3f2f8a8facb669a1420797"
kbDeclarativePatternForV4 = "9a410556b95de526e12acfe0d6f56fd35c0b0135"
Copy link
Member Author

Choose a reason for hiding this comment

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

@yyy1000 here is were we are bumping the declarative version
See that we should not bump for go/v3
because of this we need to change a little the code

@camilamacedo86
Copy link
Member Author

@kkkkun

Should update kubebuilder-declarative-pattern to v0.13.0-beta.1.0.20230604223042-9a410556b95d
such as d5ff1ae

See: https://github.com/kubernetes-sigs/kubebuilder/pull/3394/files#r1224363051
So if you change your PR accordingly please feel free.

@camilamacedo86
Copy link
Member Author

camilamacedo86 commented Jun 10, 2023

@kkkkun,

I am happy to merge your PR if you shape there. I am just moving forward here in order to help out and we have the changes asap. See that we still with an issue in the declarative one


>internal/controller/firstmate_controller.go:83:11: assignment mismatch: 2 variables but declarative.WatchAll returns 1 value
# sigs.k8s.io/kubebuilder/testdata/project-v4-declarative-v1/internal/controller
vet: internal/controller/admiral_controller.go:77:17: source.Kind (value of type func(cache "sigs.k8s.io/controller-runtime/pkg/cache".Cache, object "sigs.k8s.io/controller-runtime/pkg/client".Object) source.SyncingSource) is not a type
make[1]: *** [Makefile:61: vet] Error 1
make[1]: Leaving directory '/home/prow/go/src/sigs.k8s.io/kubebuilder/testdata/project-v4-declarative-v1'
make: *** [Makefile:134: test-testdata] Error 2

PLease, check if bump the versions informed by you would solve that but ensure that your PR does: See: https://github.com/kubernetes-sigs/kubebuilder/pull/3394/files#r1224363051

@kkkkun
Copy link
Member

kkkkun commented Jun 10, 2023

@kkkkun,

I am happy to merge your PR if you shape there. I am just moving forward here in order to help out and we have the changes asap. See that we still with an issue in the declarative one


>internal/controller/firstmate_controller.go:83:11: assignment mismatch: 2 variables but declarative.WatchAll returns 1 value
# sigs.k8s.io/kubebuilder/testdata/project-v4-declarative-v1/internal/controller
vet: internal/controller/admiral_controller.go:77:17: source.Kind (value of type func(cache "sigs.k8s.io/controller-runtime/pkg/cache".Cache, object "sigs.k8s.io/controller-runtime/pkg/client".Object) source.SyncingSource) is not a type
make[1]: *** [Makefile:61: vet] Error 1
make[1]: Leaving directory '/home/prow/go/src/sigs.k8s.io/kubebuilder/testdata/project-v4-declarative-v1'
make: *** [Makefile:134: test-testdata] Error 2

PLease, check if bump the versions informed by you would solve that but ensure that your PR does: See: https://github.com/kubernetes-sigs/kubebuilder/pull/3394/files#r1224363051

OK. I woulld retry it.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 12, 2023
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

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.

@camilamacedo86
Copy link
Member Author

Closing this one in favor of another PR for we move forward within

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump k8s 1.27
3 participants