Skip to content

Test branch#394

Closed
PushparajShetty wants to merge 8 commits into
kubevela:masterfrom
PushparajShetty:test-branch
Closed

Test branch#394
PushparajShetty wants to merge 8 commits into
kubevela:masterfrom
PushparajShetty:test-branch

Conversation

@PushparajShetty
Copy link
Copy Markdown

@PushparajShetty PushparajShetty commented Jun 30, 2025

Summary by cubic

Upgraded Go to 1.23.8, updated Kubernetes dependencies, and refreshed CRDs and CI workflows for compatibility and improved tooling.

  • Dependencies

    • Updated Go, Kubernetes libraries, and several other dependencies.
    • Upgraded controller-gen and golangci-lint versions.
    • Updated Dockerfile and Makefile to use new versions.
  • CI and CRDs

    • Updated GitHub Actions workflows to use Ubuntu 22.04 and latest Go.
    • Refreshed CRDs with new controller-gen output.

Pushparaj Shetty K S added 8 commits June 30, 2025 10:20
Signed-off-by: Pushparaj Shetty K S <pshettyks@guidewire.com>
Signed-off-by: Pushparaj Shetty K S <pshettyks@guidewire.com>
Signed-off-by: Pushparaj Shetty K S <pshettyks@guidewire.com>
Signed-off-by: Pushparaj Shetty K S <pshettyks@guidewire.com>
Signed-off-by: Pushparaj Shetty K S <pshettyks@guidewire.com>
Signed-off-by: Pushparaj Shetty K S <pshettyks@guidewire.com>
Signed-off-by: Pushparaj Shetty K S <pshettyks@guidewire.com>
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic found 9 issues across 17 files. Review them in cubic.dev

React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai to give specific feedback.


env:
GO_VERSION: '1.17.6'
GO_VERSION: '1.23.8'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go 1.23.8 is not a released version as of June 2024; the latest stable release is 1.22.x. Using a non-existent Go version will cause the workflow to fail during setup-go.

Suggested change
GO_VERSION: '1.23.8'
GO_VERSION: '1.22.4'

module backup_restore

go 1.17
go 1.23.8
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go version 1.23.8 is not released as of June 2024; the latest stable Go version is 1.22.x. Using a non-existent Go version will break builds and tooling.

Suggested change
go 1.23.8
go 1.22.4

Comment thread Makefile
@{ \
set -e ;\
GO111MODULE=off go get -u golang.org/x/tools/cmd/goimports ;\
go install golang.org/x/tools/cmd/goimports@latest ;\
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using 'go install ...@latest' for goimports can introduce non-determinism, as the installed version may change over time. Pin to a specific version for reproducible builds.

Suggested change
go install golang.org/x/tools/cmd/goimports@latest ;\
go install golang.org/x/tools/cmd/goimports@v0.12.0 ;\

Comment thread Makefile

# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true"
CRD_OPTIONS ?= "crd"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing 'trivialVersions=true' from CRD_OPTIONS may cause CRDs to lack trivial version conversion, which can break compatibility with clusters running Kubernetes 1.11 or later that expect this field. Consider whether this is intentional and document the change if so.

Suggested change
CRD_OPTIONS ?= "crd"
CRD_OPTIONS ?= "crd:trivialVersions=true"

uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.23
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go 1.23 is not released as of June 2024. Using a non-existent Go version will cause the workflow to fail at setup. Use the latest available stable Go version instead.

Suggested change
go-version: 1.23
go-version: 1.22

Comment thread Dockerfile
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.17-alpine as builder
FROM golang:1.23-alpine as builder
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Golang 1.23 is not released as of June 2024, so this base image will not be available and will cause build failures.

Suggested change
FROM golang:1.23-alpine as builder
FROM golang:1.22-alpine as builder

Comment thread go.mod
module github.com/oam-dev/terraform-controller

go 1.17
go 1.23.8
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The go directive must use the format "go ."; including a patch version (".8") makes the module file invalid and will cause go tooling to fail to parse the file.

Suggested change
go 1.23.8
go 1.23

Comment thread .golangci.yml
# the regex is used to ignore names within pkg. (default "fmt:.*").
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
ignore: fmt:.*,io/ioutil:^Read.*
exclude-functions: fmt:.*,io/ioutil:^Read.*
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'exclude-functions' is not a valid key for errcheck linter settings; the correct key is 'ignore'. This will cause the linter to ignore this exclusion rule.

Suggested change
exclude-functions: fmt:.*,io/ioutil:^Read.*
ignore: fmt:.*,io/ioutil:^Read.*

Comment thread .golangci.yml
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
formats: colored-line-number
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'formats' is not a valid key for output format in golangci-lint configuration; the correct key is 'format'. This will cause the linter to ignore the output format setting.

Suggested change
formats: colored-line-number
format: colored-line-number

@PushparajShetty PushparajShetty deleted the test-branch branch July 1, 2025 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant