Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Go 1.15.2 #753

Merged
merged 4 commits into from
Oct 1, 2020
Merged

Go 1.15.2 #753

merged 4 commits into from
Oct 1, 2020

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Sep 28, 2020

This builds on top of PR #751 to avoid code conflicts and updates to Go 1.15.2 without changing how certificates are handled, i.e. the changed default in the Go runtime is reset to what it was before the update.

@pohly pohly force-pushed the go-1.15.2 branch 2 times, most recently from 5a33d45 to 3abceef Compare September 29, 2020 12:11
@pohly
Copy link
Contributor Author

pohly commented Sep 29, 2020

Updated PR:

  • operator itself also needs GODEBUG
  • lz4 installed in build container - that was broken in "devel" by the switch to Debian

@pohly
Copy link
Contributor Author

pohly commented Sep 29, 2020

lz4 installed in build container - that was broken in "devel" by the switch to Debian

That's... hogwash! lz4 is needed on the Jenkins workers. We have an apt-get install liblz4-tool in the worker's install script in Jenkins for that. What must have happened in the failed job is that the command failed and the worker came up anyway - a known issue of our CI.

I've removed that commit again.

We can use the error wrapping that was introduced in Go 1.13
instead. The advantage is that we get rid of one dependency.
Certificates with just CN and no SAN are not accepted anymore by
default by the Go 1.15
runtime (https://golang.org/doc/go1.15#commonname).
Before we update to Go 1.15, we need to restore support via the
GODEBUG variable because otherwise upgrading to the upcoming PMEM-CSI
release will break existing installations.

This can be reverted once we are sure that all installations use
certificates with SAN.

Related-to: intel#752
This is an additional sanity check. The main usage is during "make
test", but doing it also at runtime doesn't hurt.
We want to use a recent Go with full support for the upcoming PMEM-CSI
release. Go 1.15 changes the x509 validation, therefore this update
relies on the commit which restores the old behavior via GODEBUG.
@pohly
Copy link
Contributor Author

pohly commented Sep 30, 2020

@avalluri : this seems to be ready.

@avalluri avalluri merged commit 0616111 into intel:devel Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants