Skip to content

Commit 19c4ae6

Browse files
authored
Use golang 1.21 (#2009)
* Use golang 1.21 Signed-off-by: Pavol Loffay <[email protected]> * Use golang 1.21 Signed-off-by: Pavol Loffay <[email protected]> * Fix Signed-off-by: Pavol Loffay <[email protected]> * Fix Signed-off-by: Pavol Loffay <[email protected]> * Fix Signed-off-by: Pavol Loffay <[email protected]> --------- Signed-off-by: Pavol Loffay <[email protected]>
1 parent cd1d136 commit 19c4ae6

File tree

9 files changed

+25
-9
lines changed

9 files changed

+25
-9
lines changed

.chloggen/golang121.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: enhancement
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action)
5+
component: operator
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: Bump Golang to 1.21
9+
10+
# One or more tracking issues related to the change
11+
issues: [2009]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext:

.github/workflows/continuous-integration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go
1919
uses: actions/setup-go@v3
2020
with:
21-
go-version: "1.20"
21+
go-version: "1.21"
2222

2323
- name: Check out code into the Go module directory
2424
uses: actions/checkout@v3
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Go
3434
uses: actions/setup-go@v4
3535
with:
36-
go-version: "1.20"
36+
go-version: "1.21"
3737
- name: Check out code into the Go module directory
3838
uses: actions/checkout@v3
3939

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Go
3737
uses: actions/setup-go@v4
3838
with:
39-
go-version: "1.20"
39+
go-version: "1.21"
4040

4141
- name: Setup kind
4242
env:

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Set up Go
1111
uses: actions/setup-go@v3
1212
with:
13-
go-version: "1.20"
13+
go-version: "1.21"
1414

1515
- uses: actions/checkout@v3
1616

.github/workflows/scorecard.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up Go
3030
uses: actions/setup-go@v4
3131
with:
32-
go-version: "1.20"
32+
go-version: "1.21"
3333

3434
- name: Setup kind
3535
env:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ GOLANGCI_LINT ?= $(LOCALBIN)/golangci-lint
308308

309309
KUSTOMIZE_VERSION ?= v5.0.3
310310
CONTROLLER_TOOLS_VERSION ?= v0.12.0
311-
GOLANGCI_LINT_VERSION ?= v1.51.2
311+
GOLANGCI_LINT_VERSION ?= v1.54.0
312312

313313

314314
.PHONY: kustomize

cmd/operator-opamp-bridge/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the operator-opamp-bridge binary
2-
FROM golang:1.20-alpine as builder
2+
FROM golang:1.21-alpine as builder
33

44
WORKDIR /app
55

cmd/otel-allocator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the otel-allocator binary
2-
FROM golang:1.20-alpine as builder
2+
FROM golang:1.21-alpine as builder
33

44
WORKDIR /app
55

internal/config/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func TestAutoDetectInBackground(t *testing.T) {
8585
}
8686
cfg := config.New(
8787
config.WithAutoDetect(mock),
88-
config.WithAutoDetectFrequency(100*time.Millisecond),
88+
config.WithAutoDetectFrequency(500*time.Second),
8989
)
9090

9191
// sanity check

0 commit comments

Comments
 (0)