diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08ea68d4..3353ff95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,10 +19,10 @@ jobs: runs-on: ubuntu-24.04 steps: - - name: Set up Go 1.25 + - name: Set up Go 1.27 uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 with: - go-version: '1.25' + go-version: '1.27' id: go - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 diff --git a/Makefile b/Makefile index 980f84d5..c1b1d417 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ BIN := openshift # Produce CRDs that work back to Kubernetes 1.11 (no version conversion) # CRD_OPTIONS ?= "crd:trivialVersions=true" # https://github.com/appscodelabs/gengo-builder -CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.29 +CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.34 API_GROUPS ?= apps:v1 security:v1 # This version-strategy uses git tags to set the version string @@ -58,10 +58,10 @@ BIN_PLATFORMS := $(DOCKER_PLATFORMS) OS := $(if $(GOOS),$(GOOS),$(shell go env GOOS)) ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH)) -BASEIMAGE_PROD ?= gcr.io/distroless/static-debian12 -BASEIMAGE_DBG ?= debian:12 +BASEIMAGE_PROD ?= gcr.io/distroless/static-debian13 +BASEIMAGE_DBG ?= debian:13 -GO_VERSION ?= 1.25 +GO_VERSION ?= 1.27 BUILD_IMAGE ?= ghcr.io/appscode/golang-dev:$(GO_VERSION) OUTBIN = bin/$(OS)_$(ARCH)/$(BIN) @@ -215,7 +215,7 @@ lint: $(BUILD_DIRS) --env GO111MODULE=on \ --env GOFLAGS="-mod=vendor" \ $(BUILD_IMAGE) \ - golangci-lint run --enable $(ADDTL_LINTERS) --timeout=10m --skip-files="generated.*\.go$\" --exclude-dirs=client,vendor + golangci-lint run --enable $(ADDTL_LINTERS) --timeout=10m --exclude-files="generated.*\.go$\" --exclude-dirs=client,vendor $(BUILD_DIRS): @mkdir -p $@ diff --git a/apis/apps/v1/register.go b/apis/apps/v1/register.go index 70c4a894..756f9f7b 100644 --- a/apis/apps/v1/register.go +++ b/apis/apps/v1/register.go @@ -47,7 +47,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(GroupVersion, + scheme.AddKnownTypes( + GroupVersion, &DeploymentConfig{}, &DeploymentConfigList{}, &DeploymentConfigRollback{}, diff --git a/apis/security/v1/register.go b/apis/security/v1/register.go index 3f523f09..8b8b91f9 100644 --- a/apis/security/v1/register.go +++ b/apis/security/v1/register.go @@ -46,7 +46,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(GroupVersion, + scheme.AddKnownTypes( + GroupVersion, &SecurityContextConstraints{}, &SecurityContextConstraintsList{}, &PodSecurityPolicySubjectReview{},