diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 900c85fd..0ce9b372 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 3c808bdc..0dcc65dd 100644 --- a/Makefile +++ b/Makefile @@ -56,10 +56,10 @@ BIN_PLATFORMS := $(DOCKER_PLATFORMS) windows/amd64 darwin/amd64 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) diff --git a/client/builder.go b/client/builder.go index bbe81b6f..745da4d5 100644 --- a/client/builder.go +++ b/client/builder.go @@ -156,7 +156,8 @@ func (r *ClientBuilder) Setup() error { return []string{"true"} } return nil - }); err != nil { + }, + ); err != nil { return err } diff --git a/prometheus/v1/kubernetes.go b/prometheus/v1/kubernetes.go index e7fa02be..cfb68494 100644 --- a/prometheus/v1/kubernetes.go +++ b/prometheus/v1/kubernetes.go @@ -59,7 +59,8 @@ func AssignTypeKind(v any) error { } func addKnownTypes(s *runtime.Scheme) error { - s.AddKnownTypes(SchemeGroupVersion, + s.AddKnownTypes( + SchemeGroupVersion, &api.Prometheus{}, &api.PrometheusList{}, @@ -70,7 +71,8 @@ func addKnownTypes(s *runtime.Scheme) error { &api.AlertmanagerList{}, ) - s.AddKnownTypes(SchemeGroupVersion, + s.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(s, SchemeGroupVersion)