-
Notifications
You must be signed in to change notification settings - Fork 73
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
[CLD-8507] Upgrade Go version, controller-runtime dependency #387
Conversation
…er updates to accompany
@nickmisasi: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. I understand the commands that are listed here |
TEMP_DIR=$(mktemp -d) | ||
trap 'rm -rf "${TEMP_DIR}"' EXIT |
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.
--output-dir became a required param with the upgraded version - this just creates a temporary dir that's later deleted to use for that arg.
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.
Looks great! Just one small thing to update.
.github/workflows/ci.yml
Outdated
@@ -21,7 +21,7 @@ jobs: | |||
fetch-depth: 0 | |||
|
|||
- name: ci/setup-go | |||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | |||
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v3.5.0 |
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.
Can we get this version number updated to avoid possible future confusion? Same thing for the one below.
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.
👍 At some point it would be useful to unify the Golang version from the go.mod
file and just pass it along to the files that require it.
Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>
Summary
Updates controller-runtime dependency to latest. This requires a Go version upgrade. The Go version upgrade required a few other package upgrades.
The controller-runtime upgrade resulted in some changes to the way the fake client handles status updates - see kubernetes-sigs/controller-runtime#2259 - adjusted tests accordingly so they'd pass.
Ticket Link
https://mattermost.atlassian.net/browse/CLD-8507
Release Note