operator-sdk icon indicating copy to clipboard operation
operator-sdk copied to clipboard

Support for Go version 1.21

Open BrimstoneXmk opened this issue 1 year ago • 6 comments

Bug Report

What did you do?

ref to this issue: https://github.com/operator-framework/operator-sdk/issues/6644

What did you expect to see?

Support for Go 1.21 PR to be merged for release 1.34.1 branch for ansible-operator-plugin

What did you see instead? Under which circumstances?

The ansible-operator-plugin for 1.34.1 release branch doesn't have the Bump go to 1.21 PR cherry-picked which directly could have resolved this issue Support for Go version 1.21. This issue is marked as resolved Overall, from the changelog point of view, this hasn't been resolved yet in 1.34.1 or 1.34.0 version.

Environment

Operator type: Ansible

Kubernetes cluster type:

$ operator-sdk version: v1.34.1

$ go version (if language is Go): go1.20.14

$ kubectl version: v1.28.0

Possible Solution

The ansible-operator-plugin for 1.34.1 release branch doesn't have the Bump go to 1.21 PR cherry-picked which directly can resolve this issue.

Additional context

BrimstoneXmk avatar Apr 18 '24 12:04 BrimstoneXmk

@oceanc80, @rashmigottipati could you please confirm if this can be fixed promptly?

BrimstoneXmk avatar Apr 18 '24 12:04 BrimstoneXmk

FYI @everettraven @varshaprasad96 Any update on this? Facing same issue

I checked the changelog here and I couldn't find the go version 1.21 PR

tarunkalra7 avatar May 02 '24 09:05 tarunkalra7

We need to cut a release of ansible-operator-plugins and then bump our dependency on this and cut a release.

We're in the process of upgrading our dependencies, this should happen with that automatically.

jberkhahn avatar May 06 '24 18:05 jberkhahn

  • Relates: operator-framework/operator-sdk#6651

Waiting on

  • operator-framework/ansible-operator-plugins#67

acornett21 avatar May 06 '24 18:05 acornett21

@jberkhahn Till when can we expect the next release?

BrimstoneXmk avatar May 11 '24 13:05 BrimstoneXmk

We can see that the latest release has happened for Ansible as well as for helm. New version of operator SDK is available now : 1.34.2. Checked Go version used in this new release. For helm-operator, its upgraded to 1.21.10. Refer below output.

bash-4.4# helm-operator version helm-operator version: "v1.34.2", commit: "81dd3cb24b8744de03d312c1ba23bfc617044005", kubernetes version: "v1.28.0", go version: "go1.21.10", GOOS: "linux", GOARCH: "amd64"

But for ansible-operator, new release is using Go 1.21.9 . Refer below output.

bash-4.4# ansible-operator version ansible-operator version: "v1.34.2", commit: "1c1f3931cc40b75a6fd6f1dd48847f288abc748a", kubernetes version: "v1.28.0", go version: "go1.21.9", GOOS: "linux", GOARCH: "amd64"

can anyone explain why is this difference?

BrimstoneXmk avatar May 21 '24 12:05 BrimstoneXmk

Go 1.21 will become unsupported in August, so i opened an issue:

  • https://github.com/operator-framework/operator-sdk/issues/6788

stefanb avatar Jul 23 '24 04:07 stefanb

Going to close this since v1.36.0 addresses this.

acornett21 avatar Jul 29 '24 22:07 acornett21