Kubernetes is now using go1.8.1 at HEAD as the supported Go version

264 views
Skip to first unread message

lu...@luxaslabs.com

unread,
Apr 26, 2017, 1:35:00 PM4/26/17
to Kubernetes developer/contributor discussion
Heads up everyone,

https://github.com/kubernetes/kubernetes/pull/41636 and a couple of related PRs moved the supported Go version for official Kubernetes builds from go1.7.5 to go1.8.1

It's highly recommended that you're using go1.8+ when developing Kubernetes from now on.
`make release` and a lot of other development scripts are already using the build container from the specialized `kube-cross` image that
contains all build deps for Kubernetes. The only thing you need for developing Kubernetes efficiently is docker.

Basically `build/run.sh` will wrap any command in the build container that is the supported build environment.

Kubernetes v1.7 will be the first stable version to use go1.8.x for all released builds.

Best Regards,
Lucas

Klaus Ma

unread,
Apr 26, 2017, 8:58:15 PM4/26/17
to Kubernetes developer/contributor discussion
If upgrade to go 1.8, the following tests are failed; should I re-open those PR?

Guangya Liu

unread,
May 2, 2017, 3:37:56 AM5/2/17
to lu...@luxaslabs.com, Kubernetes developer/contributor discussion
Please make sure a clean upgrade from go1.7.X to go1.8.1 as https://github.com/golang/go/issues/19143 proposed if you have some build error issues as https://github.com/kubernetes/kubernetes/issues/45214

>If you are upgrading from an older version of Go you must first remove the existing version.
To remove an existing Go installation from your system delete the go directory. This is usually /usr/local/go under Linux, Mac OS X, and FreeBSD or c:\Go under Windows.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/8dfbce6b-1cb8-4867-a0a8-29bca61b841f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeff Grafton

unread,
May 2, 2017, 2:59:38 PM5/2/17
to Guangya Liu, lu...@luxaslabs.com, Kubernetes developer/contributor discussion
I know everyone's workflow is different, but using gvm has made frequently switching go versions (up and down) painless for me. (I also set up an alias to cd into my kubernetes working directory and automatically run "gvm use goX.Y" so that I never accidentally use the system go runtime.)

On Tue, May 2, 2017 at 12:37 AM, Guangya Liu <gyli...@gmail.com> wrote:
Please make sure a clean upgrade from go1.7.X to go1.8.1 as https://github.com/golang/go/issues/19143 proposed if you have some build error issues as https://github.com/kubernetes/kubernetes/issues/45214

>If you are upgrading from an older version of Go you must first remove the existing version.
To remove an existing Go installation from your system delete the go directory. This is usually /usr/local/go under Linux, Mac OS X, and FreeBSD or c:\Go under Windows.
On Thu, Apr 27, 2017 at 1:35 AM, <lu...@luxaslabs.com> wrote:
Heads up everyone,

https://github.com/kubernetes/kubernetes/pull/41636 and a couple of related PRs moved the supported Go version for official Kubernetes builds from go1.7.5 to go1.8.1

It's highly recommended that you're using go1.8+ when developing Kubernetes from now on.
`make release` and a lot of other development scripts are already using the build container from the specialized `kube-cross` image that
contains all build deps for Kubernetes. The only thing you need for developing Kubernetes efficiently is docker.

Basically `build/run.sh` will wrap any command in the build container that is the supported build environment.

Kubernetes v1.7 will be the first stable version to use go1.8.x for all released builds.

Best Regards,
Lucas

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.

Wojciech Tyczynski

unread,
May 9, 2017, 8:45:50 AM5/9/17
to Jeff Grafton, Guangya Liu, lu...@luxaslabs.com, Kubernetes developer/contributor discussion
 FYI - we found a significant performance regression connected to update to Go 1.8.1 - for more details see:

 We are still investigating potential solutions, but for now we can't exclude rolling back to Go 1.7.5 (though we would like to avoid it if possible).

 Thanks
wojtek

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.

lu...@luxaslabs.com

unread,
May 9, 2017, 9:54:29 AM5/9/17
to Kubernetes developer/contributor discussion, jgra...@google.com, gyli...@gmail.com, lu...@luxaslabs.com, miked...@google.com
Thanks @wojtek!

Was just about to mention that issue, but you did it for me ;)
I'm pretty confident we can fix it to avoid rolling back to go1.7, but as said, it may be a last resort.
If I understood it correctly, some of the Kubelet Certificate Rotation stuff depends on go 1.8, so if we rollback that feature might be held back.
See:

@mikedanese is that understanding correct?

Lucas


Den tisdag 9 maj 2017 kl. 15:45:50 UTC+3 skrev Wojciech Tyczynski:
 FYI - we found a significant performance regression connected to update to Go 1.8.1 - for more details see:

 We are still investigating potential solutions, but for now we can't exclude rolling back to Go 1.7.5 (though we would like to avoid it if possible).

 Thanks
wojtek
On Tue, May 2, 2017 at 8:59 PM, 'Jeff Grafton' via Kubernetes developer/contributor discussion <kuberne...@googlegroups.com> wrote:
I know everyone's workflow is different, but using gvm has made frequently switching go versions (up and down) painless for me. (I also set up an alias to cd into my kubernetes working directory and automatically run "gvm use goX.Y" so that I never accidentally use the system go runtime.)
On Tue, May 2, 2017 at 12:37 AM, Guangya Liu <gyli...@gmail.com> wrote:
Please make sure a clean upgrade from go1.7.X to go1.8.1 as https://github.com/golang/go/issues/19143 proposed if you have some build error issues as https://github.com/kubernetes/kubernetes/issues/45214

>If you are upgrading from an older version of Go you must first remove the existing version.
To remove an existing Go installation from your system delete the go directory. This is usually /usr/local/go under Linux, Mac OS X, and FreeBSD or c:\Go under Windows.
On Thu, Apr 27, 2017 at 1:35 AM, <lu...@luxaslabs.com> wrote:
Heads up everyone,

https://github.com/kubernetes/kubernetes/pull/41636 and a couple of related PRs moved the supported Go version for official Kubernetes builds from go1.7.5 to go1.8.1

It's highly recommended that you're using go1.8+ when developing Kubernetes from now on.
`make release` and a lot of other development scripts are already using the build container from the specialized `kube-cross` image that
contains all build deps for Kubernetes. The only thing you need for developing Kubernetes efficiently is docker.

Basically `build/run.sh` will wrap any command in the build container that is the supported build environment.

Kubernetes v1.7 will be the first stable version to use go1.8.x for all released builds.

Best Regards,
Lucas

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.

To post to this group, send email to kuberne...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.

To post to this group, send email to kuberne...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages