Skip to content

Commit 6289f8e

Browse files
authored
Merge pull request #1638 from relu/k8s-1.30
Update dependencies to Kubernetes 1.30
2 parents 9a0c6e7 + 5e6815d commit 6289f8e

File tree

7 files changed

+72
-122
lines changed

7 files changed

+72
-122
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
go mod download
3232
go install golang.org/x/tools/cmd/goimports
3333
- name: Run linters
34-
run: make test-fmt test-codegen
34+
run: make fmt test-codegen
3535
- name: Verify CRDs
3636
run: make verify-crd
3737
- name: Run tests

.github/workflows/e2e.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ jobs:
3838
- name: Checkout
3939
uses: actions/checkout@v4
4040
- name: Setup Kubernetes
41-
uses: helm/kind-action@v1.9.0
41+
uses: helm/kind-action@v1.10.0
4242
if: matrix.provider != 'skipper'
4343
with:
44-
version: v0.20.0
44+
version: v0.23.0
4545
cluster_name: kind
46-
node_image: kindest/node:v1.27.3@sha256:9dd3392d79af1b084671b05bcf65b21de476256ad1dcc853d9f3b10b4ac52dde
46+
node_image: kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e
4747
- name: Setup Kubernetes for skipper
48-
uses: helm/kind-action@v1.9.0
48+
uses: helm/kind-action@v1.10.0
4949
if: matrix.provider == 'skipper'
5050
with:
51-
version: v0.20.0
51+
version: v0.23.0
5252
cluster_name: kind
5353
node_image: kindest/node:v1.24.12@sha256:0bdca26bd7fe65c823640b14253ea7bac4baad9336b332c94850f84d8102f873
5454
- name: Build container image

Makefile

+3-9
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,18 @@ vet:
1212
go vet ./...
1313

1414
fmt:
15-
go mod tidy
16-
gofmt -l -s -w ./
17-
goimports -l -w ./
18-
19-
test-fmt:
20-
gofmt -l -s ./ | grep ".*\.go"; if [ "$$?" = "0" ]; then exit 1; fi
21-
goimports -l ./ | grep ".*\.go"; if [ "$$?" = "0" ]; then exit 1; fi
15+
go fmt ./...
2216

2317
codegen:
2418
./hack/update-codegen.sh
2519

2620
test-codegen:
2721
./hack/verify-codegen.sh
2822

29-
test: test-fmt test-codegen
23+
test: fmt test-codegen
3024
go test ./...
3125

32-
test-coverage: test-fmt test-codegen
26+
test-coverage: fmt test-codegen
3327
go test -coverprofile cover.out ./...
3428
go tool cover -html=cover.out
3529
rm cover.out

cmd/flagger/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func startLeaderElection(ctx context.Context, run func(), ns string, kubeClient
327327
id = id + "_" + string(uuid.NewUUID())
328328

329329
lock, err := resourcelock.New(
330-
resourcelock.ConfigMapsLeasesResourceLock,
330+
resourcelock.LeasesResourceLock,
331331
ns,
332332
configMapName,
333333
kubeClient.CoreV1(),

go.mod

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/fluxcd/flagger
22

3-
go 1.22
3+
go 1.22.0
44

55
require (
66
cloud.google.com/go/monitoring v1.18.1
@@ -20,10 +20,10 @@ require (
2020
google.golang.org/grpc v1.62.1
2121
google.golang.org/protobuf v1.33.0
2222
gopkg.in/h2non/gock.v1 v1.1.2
23-
k8s.io/api v0.27.11
24-
k8s.io/apimachinery v0.27.11
25-
k8s.io/client-go v0.27.11
26-
k8s.io/code-generator v0.27.11
23+
k8s.io/api v0.30.0
24+
k8s.io/apimachinery v0.30.0
25+
k8s.io/client-go v0.30.0
26+
k8s.io/code-generator v0.30.0
2727
k8s.io/klog/v2 v2.120.1
2828
)
2929

@@ -33,7 +33,7 @@ require (
3333
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
3434
github.com/beorn7/perks v1.0.1 // indirect
3535
github.com/cespare/xxhash/v2 v2.2.0 // indirect
36-
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
36+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
3737
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
3838
github.com/go-logr/logr v1.4.1 // indirect
3939
github.com/go-logr/stdr v1.2.2 // indirect
@@ -43,7 +43,7 @@ require (
4343
github.com/gogo/protobuf v1.3.2 // indirect
4444
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
4545
github.com/golang/protobuf v1.5.4 // indirect
46-
github.com/google/gnostic v0.6.9 // indirect
46+
github.com/google/gnostic-models v0.6.8 // indirect
4747
github.com/google/gofuzz v1.2.0 // indirect
4848
github.com/google/s2a-go v0.1.7 // indirect
4949
github.com/google/uuid v1.6.0 // indirect
@@ -73,25 +73,25 @@ require (
7373
go.opentelemetry.io/otel/trace v1.24.0 // indirect
7474
go.uber.org/multierr v1.11.0 // indirect
7575
golang.org/x/crypto v0.21.0 // indirect
76-
golang.org/x/mod v0.14.0 // indirect
76+
golang.org/x/mod v0.15.0 // indirect
7777
golang.org/x/net v0.23.0 // indirect
7878
golang.org/x/oauth2 v0.18.0 // indirect
7979
golang.org/x/sync v0.6.0 // indirect
8080
golang.org/x/sys v0.18.0 // indirect
8181
golang.org/x/term v0.18.0 // indirect
8282
golang.org/x/text v0.14.0 // indirect
8383
golang.org/x/time v0.5.0 // indirect
84-
golang.org/x/tools v0.16.1 // indirect
84+
golang.org/x/tools v0.18.0 // indirect
8585
google.golang.org/appengine v1.6.8 // indirect
8686
google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect
8787
google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
8888
gopkg.in/inf.v0 v0.9.1 // indirect
8989
gopkg.in/yaml.v2 v2.4.0 // indirect
9090
gopkg.in/yaml.v3 v3.0.1 // indirect
91-
k8s.io/gengo v0.0.0-20230306165830-ab3349d207d4 // indirect
92-
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
93-
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
91+
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect
92+
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
93+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
9494
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
95-
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
95+
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
9696
sigs.k8s.io/yaml v1.3.0 // indirect
9797
)

0 commit comments

Comments
 (0)