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

bumped go version to 1.18.2 #8578

Merged
merged 1 commit into from
May 11, 2022
Merged

bumped go version to 1.18.2 #8578

merged 1 commit into from
May 11, 2022

Conversation

longwuyuan
Copy link
Contributor

What this PR does / why we need it:

  • This PR bumps the go version used in the project to v1.18.1, from v1.17.6

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation only

Which issue/s this PR fixes

fixes #8577

How Has This Been Tested?

  • Will be tested in CI when controller image is rebuilt

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 11, 2022
@k8s-ci-robot
Copy link
Contributor

@longwuyuan: This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 11, 2022
@longwuyuan
Copy link
Contributor Author

@rikatz @tao12345666333 first time I am bumping go, so please forgive mistakes and advise next steps on mistakes

@longwuyuan
Copy link
Contributor Author

/assign @rikatz

@rikatz
Copy link
Contributor

rikatz commented May 11, 2022

thanks Long!

Some places to be changed as well:

./images/kube-webhook-certgen/rootfs/Dockerfile
15:FROM --platform=$BUILDPLATFORM golang:1.16 as builder
./images/kube-webhook-certgen/rootfs/go.mod
3:go 1.16
./images/custom-error-pages/rootfs/Dockerfile
15:FROM golang:1.17-alpine as builder
./images/custom-error-pages/rootfs/go.mod
3:go 1.17
./images/ext-auth-example-authsvc/rootfs/go.mod
3:go 1.17

And finally the root go.mod should be changed to go v1.18 as well :)

@longwuyuan
Copy link
Contributor Author

I edited the files you mentioned @rikatz. Please check.

But, just now, I saw v1.18.2 is out as well. So in the spots where there is just 1.18, will it pick up v1.18.2 ?

@longwuyuan
Copy link
Contributor Author

checking failed tests. maybe should have built & promoted the cetgen and other images first

@ElvinEfendi
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. labels May 11, 2022
@longwuyuan
Copy link
Contributor Author

Had forgotten to bump in /go.mod . Re-pushed after bumping in /go.mod as well.

@rikatz
Copy link
Contributor

rikatz commented May 11, 2022

Yeah let's move to 1.18.2 as it fixes a cve

@rikatz
Copy link
Contributor

rikatz commented May 11, 2022

/hold cancel

@rikatz
Copy link
Contributor

rikatz commented May 11, 2022

/hold

@rikatz rikatz added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 11, 2022
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 11, 2022
@rikatz
Copy link
Contributor

rikatz commented May 11, 2022

@longwuyuan using go 1.18.2, go to auth-svc and webhook dirs (and also in the main one) and run "go mod tidy"

This will update go.sum and the tests should pass

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 11, 2022
@longwuyuan
Copy link
Contributor Author

@rikatz sorry for that. Did that now. Waiting for tests

@rikatz
Copy link
Contributor

rikatz commented May 11, 2022

@rikatz sorry for that. Did that now. Waiting for tests

no need to ask for sorry, first time doing this right? :D

@longwuyuan
Copy link
Contributor Author

:-) thanks.
Previously failing tests passed now.

@longwuyuan longwuyuan changed the title bumped go version to 1.18.1 bumped go version to 1.18.2 May 11, 2022
@longwuyuan
Copy link
Contributor Author

I forgot something else.
We need to put K8S v1.24 also now !
And maybe remove K8s v1.19 !

@rikatz
Copy link
Contributor

rikatz commented May 11, 2022

We can do that in a separate PR

@rikatz
Copy link
Contributor

rikatz commented May 11, 2022

/check-cla
/lgtm
/approve
Thanks!

@rikatz
Copy link
Contributor

rikatz commented May 11, 2022

/hold cancel

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 11, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ElvinEfendi, longwuyuan, rikatz

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 merged commit 24b8e32 into kubernetes:main May 11, 2022
@rikatz
Copy link
Contributor

rikatz commented May 11, 2022

@longwuyuan now you need to promote all generated images :)

@longwuyuan
Copy link
Contributor Author

@rikatz assigned kubernetes/k8s.io#3727 to you for promoting certain and errors images.

(We need to create a repo for other images that we see directories for under /images but don't have a image repo for)

@longwuyuan longwuyuan deleted the issue-8577 branch May 12, 2022 03:30
@longwuyuan longwuyuan mentioned this pull request Aug 24, 2022
9 tasks
rchshld pushed a commit to joomcode/ingress-nginx that referenced this pull request May 19, 2023
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bump go version to v1.18.1
4 participants