-
Notifications
You must be signed in to change notification settings - Fork 123
Bump operator-sdk to v0.18, k8s to 1.18 #462
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
Bump operator-sdk to v0.18, k8s to 1.18 #462
Conversation
a7809f4
to
1e9fc40
Compare
f0766aa
to
8ab7634
Compare
I finally manage to reach this one, taking a look. |
8ab7634
to
75db789
Compare
There is something weird here with the modules management(dependencies conflict in my opinion).
I think the operator-sdk version is too old, we should do a bump to the v1.0.0, which stills kubernetes v0.18.* , but it have breaking changes in code, which we need to address anyways. I´m trying to understand how to fix this, but leaving a comment on my observations while is almost end of my day here. |
I purposefully bumped k8s to the latest 1.18 z-stream. This ensures we get the latest bug fixes (some of which include CVEs). Same deal with controller-runtime - I explicitly bumped to the latest z-stream.
The Operator SDK docs have explicit guidance on how to migrate from v0.17 to v0.18, v0.19, and v1. If we did this all at once, it would be very hard to determine which change led to flakes/failures. https://sdk.operatorframework.io/docs/upgrading-sdk-version/v0.18.0/ |
75db789
to
9f400a9
Compare
Im not sure this is ideal, if controller runtime is This is how the sdk itself does it, see sdk go modules and also mentioned on https://sdk.operatorframework.io/docs/upgrading-sdk-version/v0.18.0/#modules. Same case for the client-go, you stick with the mapping version for the k8s you are defining in the k8s.io. Trying now to understand if everything can stay at a |
@@ -13,7 +13,7 @@ require ( | |||
github.com/prometheus/client_golang v1.6.0 | |||
github.com/prometheus/client_model v0.2.0 | |||
github.com/spf13/pflag v1.0.5 | |||
github.com/tektoncd/pipeline v0.17.1 | |||
github.com/tektoncd/pipeline v0.17.1-0.20201006183654-d5df1c164a48 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This took me a little time to understand, is so weird what Tekton did, the d5df1c16
commit was merged since v0.17.1 tag but only available starting at v0.18.0 tag. I think by doing this fixed commit we only lose like 3 commits from the original v0.17.1 tag which are just around docs. I think once this PR is merged, I will bump tekton to v0.18.0 asap
@adambkaplan dropped you a PR into this PR, pls take a look adambkaplan#1 |
9f400a9
to
a4d5781
Compare
5f57cbd
to
150fbd5
Compare
- Make go 1.14 explicit - Bump operator-framework/operator-sdk to v0.18.2 - Bump k8s.io/* to v0.18.10 - Replace for github.com/Sirupsen/logrus (renamed) - Replace for github.com/docker/distribution (fix version tag resolution) - Pin docker/docker to specific version - Update knative.dev/pkg to release-0.18 - Update tekton to d5df1c164a48 to get k8s 1.18 clientsets - go mod tidy && go mod vendor
- Generate new clientsets. Context introduced in v0.18 - Generate new fakes
- Add context to all client calls - Add additional client options
- Re-generate crds. - Replace --local flag with local command.
- Use kind v0.8.0 and k8s 1.18.2 - Run kind registry on its own network, fix default name
- Update taskruns wrapper
150fbd5
to
7febc70
Compare
Thanks a lot for the version bump, Adam and Enrique. I finally double check the PR again. I am going to approve and merge this PR and continue other related test based on that. Thanks a lot! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zhangtbj 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 |
Fixes #431 and #430