Skip to content

Commit b8d0eb3

Browse files
authored
Merge pull request #149 from fluxcd/go1.22
Update dependencies to Go 1.22 and Kubernetes 1.29.3
2 parents 4c79564 + 75c02ea commit b8d0eb3

File tree

7 files changed

+87
-78
lines changed

7 files changed

+87
-78
lines changed

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup Go
4545
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
4646
with:
47-
go-version: 1.20.x
47+
go-version-file: 'go.mod'
4848
cache-dependency-path: |
4949
**/go.sum
5050
**/go.mod

.github/workflows/test.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Go
1818
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
1919
with:
20-
go-version: 1.20.x
20+
go-version-file: 'go.mod'
2121
cache-dependency-path: |
2222
**/go.sum
2323
**/go.mod
@@ -26,6 +26,7 @@ jobs:
2626
- name: Check if working tree is dirty
2727
run: |
2828
if [[ $(git diff --stat) != '' ]]; then
29+
git --no-pager diff
2930
echo 'run make test and commit changes'
3031
exit 1
3132
fi

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG GO_VERSION=1.20
2-
ARG XX_VERSION=1.2.1
1+
ARG GO_VERSION=1.22
2+
ARG XX_VERSION=1.4.0
33

44
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
55

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ manifests: controller-gen
5252

5353
# Run go tidy to cleanup go.mod
5454
tidy:
55-
rm -f go.sum; go mod tidy -compat=1.20
55+
rm -f go.sum; go mod tidy -compat=1.22
5656

5757
# Run go fmt against code
5858
fmt:
@@ -87,7 +87,7 @@ manifests-release:
8787

8888
# Find or download controller-gen
8989
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
90-
CONTROLLER_GEN_VERSION ?= v0.11.1
90+
CONTROLLER_GEN_VERSION ?= v0.14.0
9191
.PHONY: controller-gen
9292
controller-gen: ## Download controller-gen locally if necessary.
9393
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_GEN_VERSION))

config/rbac/role.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
5-
creationTimestamp: null
65
name: source-reader
76
rules:
87
- apiGroups:

go.mod

+22-23
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
module github.com/fluxcd/source-watcher
22

3-
go 1.20
3+
go 1.22
44

55
// Replace digest lib to master to gather access to BLAKE3.
66
// xref: https://github.com/opencontainers/go-digest/pull/66
77
replace github.com/opencontainers/go-digest => github.com/opencontainers/go-digest v1.0.1-0.20220411205349-bde1400a84be
88

99
require (
10-
github.com/fluxcd/pkg/http/fetch v0.9.0
11-
github.com/fluxcd/pkg/runtime v0.44.1
12-
github.com/fluxcd/pkg/tar v0.4.0
10+
github.com/fluxcd/pkg/http/fetch v0.10.0
11+
github.com/fluxcd/pkg/runtime v0.45.0
12+
github.com/fluxcd/pkg/tar v0.6.0
1313
github.com/fluxcd/source-controller/api v1.2.4
1414
github.com/spf13/pflag v1.0.5
15-
k8s.io/apimachinery v0.28.6
16-
k8s.io/client-go v0.28.6
17-
sigs.k8s.io/controller-runtime v0.16.3
15+
k8s.io/apimachinery v0.29.3
16+
k8s.io/client-go v0.29.3
17+
sigs.k8s.io/controller-runtime v0.17.2
1818
)
1919

2020
require (
@@ -23,47 +23,46 @@ require (
2323
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
2424
github.com/davecgh/go-spew v1.1.1 // indirect
2525
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
26-
github.com/evanphx/json-patch/v5 v5.7.0 // indirect
27-
github.com/fluxcd/pkg/apis/meta v1.3.0 // indirect
26+
github.com/evanphx/json-patch/v5 v5.8.0 // indirect
27+
github.com/fluxcd/pkg/apis/meta v1.4.0 // indirect
2828
github.com/fsnotify/fsnotify v1.7.0 // indirect
29-
github.com/go-logr/logr v1.3.0 // indirect
29+
github.com/go-logr/logr v1.4.1 // indirect
3030
github.com/go-logr/zapr v1.3.0 // indirect
3131
github.com/go-openapi/jsonpointer v0.20.0 // indirect
3232
github.com/go-openapi/jsonreference v0.20.2 // indirect
3333
github.com/go-openapi/swag v0.22.4 // indirect
3434
github.com/gogo/protobuf v1.3.2 // indirect
3535
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
36-
github.com/golang/protobuf v1.5.3 // indirect
36+
github.com/golang/protobuf v1.5.4 // indirect
3737
github.com/google/gnostic-models v0.6.8 // indirect
3838
github.com/google/go-cmp v0.6.0 // indirect
3939
github.com/google/gofuzz v1.2.0 // indirect
40-
github.com/google/uuid v1.5.0 // indirect
40+
github.com/google/uuid v1.6.0 // indirect
4141
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
4242
github.com/hashicorp/go-retryablehttp v0.7.5 // indirect
4343
github.com/imdario/mergo v0.3.16 // indirect
4444
github.com/josharian/intern v1.0.0 // indirect
4545
github.com/json-iterator/go v1.1.12 // indirect
4646
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
4747
github.com/mailru/easyjson v0.7.7 // indirect
48-
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
4948
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5049
github.com/modern-go/reflect2 v1.0.2 // indirect
5150
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5251
github.com/opencontainers/go-digest v1.0.0 // indirect
5352
github.com/opencontainers/go-digest/blake3 v0.0.0-20231025023718-d50d2fec9c98 // indirect
5453
github.com/pkg/errors v0.9.1 // indirect
55-
github.com/prometheus/client_golang v1.18.0 // indirect
54+
github.com/prometheus/client_golang v1.19.0 // indirect
5655
github.com/prometheus/client_model v0.5.0 // indirect
57-
github.com/prometheus/common v0.45.0 // indirect
56+
github.com/prometheus/common v0.48.0 // indirect
5857
github.com/prometheus/procfs v0.12.0 // indirect
5958
github.com/zeebo/blake3 v0.2.3 // indirect
6059
go.uber.org/multierr v1.11.0 // indirect
61-
go.uber.org/zap v1.26.0 // indirect
60+
go.uber.org/zap v1.27.0 // indirect
6261
golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb // indirect
63-
golang.org/x/net v0.20.0 // indirect
62+
golang.org/x/net v0.22.0 // indirect
6463
golang.org/x/oauth2 v0.16.0 // indirect
65-
golang.org/x/sys v0.16.0 // indirect
66-
golang.org/x/term v0.16.0 // indirect
64+
golang.org/x/sys v0.18.0 // indirect
65+
golang.org/x/term v0.18.0 // indirect
6766
golang.org/x/text v0.14.0 // indirect
6867
golang.org/x/time v0.5.0 // indirect
6968
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
@@ -72,12 +71,12 @@ require (
7271
gopkg.in/inf.v0 v0.9.1 // indirect
7372
gopkg.in/yaml.v2 v2.4.0 // indirect
7473
gopkg.in/yaml.v3 v3.0.1 // indirect
75-
k8s.io/api v0.28.6 // indirect
76-
k8s.io/apiextensions-apiserver v0.28.6 // indirect
77-
k8s.io/component-base v0.28.6 // indirect
74+
k8s.io/api v0.29.3 // indirect
75+
k8s.io/apiextensions-apiserver v0.29.3 // indirect
76+
k8s.io/component-base v0.29.3 // indirect
7877
k8s.io/klog/v2 v2.110.1 // indirect
7978
k8s.io/kube-openapi v0.0.0-20231206194836-bf4651e18aa8 // indirect
80-
k8s.io/utils v0.0.0-20231127182322-b307cd553661 // indirect
79+
k8s.io/utils v0.0.0-20240310230437-4693a0247e57 // indirect
8180
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
8281
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
8382
sigs.k8s.io/yaml v1.4.0 // indirect

0 commit comments

Comments
 (0)