Skip to content

Commit 9b9eb2b

Browse files
authored
Use Go 1.27, k8s 1.37 & debian:13 (#25)
Signed-off-by: 1gtm <1gtm@appscode.com>
1 parent 14ba036 commit 9b9eb2b

4 files changed

Lines changed: 12 additions & 9 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
runs-on: ubuntu-24.04
2020
steps:
2121

22-
- name: Set up Go 1.25
22+
- name: Set up Go 1.27
2323
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
2424
with:
25-
go-version: '1.25'
25+
go-version: '1.27'
2626
id: go
2727

2828
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

‎Makefile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ REPO := $(notdir $(shell pwd))
1919
BIN := authorizer
2020

2121
# https://github.com/appscodelabs/gengo-builder
22-
CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.29
22+
CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.34
2323

2424
# This version-strategy uses git tags to set the version string
2525
git_branch := $(shell git rev-parse --abbrev-ref HEAD)
@@ -55,10 +55,10 @@ BIN_PLATFORMS := $(DOCKER_PLATFORMS)
5555
OS := $(if $(GOOS),$(GOOS),$(shell go env GOOS))
5656
ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
5757

58-
BASEIMAGE_PROD ?= gcr.io/distroless/static-debian12
59-
BASEIMAGE_DBG ?= debian:12
58+
BASEIMAGE_PROD ?= gcr.io/distroless/static-debian13
59+
BASEIMAGE_DBG ?= debian:13
6060

61-
GO_VERSION ?= 1.25
61+
GO_VERSION ?= 1.27
6262
BUILD_IMAGE ?= ghcr.io/appscode/golang-dev:$(GO_VERSION)
6363

6464
OUTBIN = bin/$(OS)_$(ARCH)/$(BIN)

‎rbac/rbac_test.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ func TestAuthorizer(t *testing.T) {
236236
{
237237
// test subresource resolution
238238
clusterRoles: []*rbacv1.ClusterRole{
239-
newClusterRole("admin",
239+
newClusterRole(
240+
"admin",
240241
newRule("*", "*", "pods/status", "*"),
241242
newRule("*", "*", "*/scale", "*"),
242243
),

‎rbac/validation/rule.go‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ type clusterRoleBindingDescriber struct {
154154
}
155155

156156
func (d *clusterRoleBindingDescriber) String() string {
157-
return fmt.Sprintf("ClusterRoleBinding %q of %s %q to %s",
157+
return fmt.Sprintf(
158+
"ClusterRoleBinding %q of %s %q to %s",
158159
d.binding.Name,
159160
d.binding.RoleRef.Kind,
160161
d.binding.RoleRef.Name,
@@ -168,7 +169,8 @@ type roleBindingDescriber struct {
168169
}
169170

170171
func (d *roleBindingDescriber) String() string {
171-
return fmt.Sprintf("RoleBinding %q of %s %q to %s",
172+
return fmt.Sprintf(
173+
"RoleBinding %q of %s %q to %s",
172174
d.binding.Name+"/"+d.binding.Namespace,
173175
d.binding.RoleRef.Kind,
174176
d.binding.RoleRef.Name,

0 commit comments

Comments
 (0)