Skip to content

Commit 165c953

Browse files
authored
Merge pull request #1208 from fluxcd/kubernetes-v1.24.1
Update Kubernetes packages to v1.24.1
2 parents 560f884 + a0fae15 commit 165c953

File tree

9 files changed

+269
-110
lines changed

9 files changed

+269
-110
lines changed

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ LT_VERSION?=$(shell grep 'VERSION' cmd/loadtester/main.go | awk '{ print $$4 }'
55
build:
66
CGO_ENABLED=0 go build -a -o ./bin/flagger ./cmd/flagger
77

8+
tidy:
9+
rm -f go.sum; go mod tidy -compat=1.17
10+
11+
vet:
12+
go vet ./...
13+
814
fmt:
915
go mod tidy
1016
gofmt -l -s -w ./

artifacts/flagger/account.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ rules:
3131
- update
3232
- patch
3333
- delete
34+
- apiGroups:
35+
- "coordination.k8s.io"
36+
resources:
37+
- leases
38+
verbs:
39+
- get
40+
- list
41+
- watch
42+
- create
43+
- update
44+
- patch
45+
- delete
3446
- apiGroups:
3547
- apps
3648
resources:

charts/flagger/templates/rbac.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ rules:
2727
- update
2828
- patch
2929
- delete
30+
- apiGroups:
31+
- "coordination.k8s.io"
32+
resources:
33+
- leases
34+
verbs:
35+
- get
36+
- list
37+
- watch
38+
- create
39+
- update
40+
- patch
41+
- delete
3042
- apiGroups:
3143
- apps
3244
resources:

cmd/flagger/main.go

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

327327
lock, err := resourcelock.New(
328-
resourcelock.ConfigMapsResourceLock,
328+
resourcelock.ConfigMapsLeasesResourceLock,
329329
ns,
330330
configMapName,
331331
kubeClient.CoreV1(),

go.mod

+47-35
Original file line numberDiff line numberDiff line change
@@ -3,76 +3,88 @@ module github.com/fluxcd/flagger
33
go 1.17
44

55
require (
6-
cloud.google.com/go/monitoring v0.1.0
7-
github.com/Masterminds/semver/v3 v3.0.3
8-
github.com/aws/aws-sdk-go v1.37.32
6+
cloud.google.com/go/monitoring v1.5.0
7+
github.com/Masterminds/semver/v3 v3.1.1
8+
github.com/aws/aws-sdk-go v1.44.24
99
github.com/davecgh/go-spew v1.1.1
10-
github.com/go-logr/zapr v1.2.0
11-
github.com/google/go-cmp v0.5.6
12-
github.com/googleapis/gax-go/v2 v2.0.5
13-
github.com/influxdata/influxdb-client-go/v2 v2.5.0
14-
github.com/prometheus/client_golang v1.11.1
15-
github.com/stretchr/testify v1.7.0
16-
go.uber.org/zap v1.19.1
17-
google.golang.org/api v0.54.0
18-
google.golang.org/genproto v0.0.0-20210813162853-db860fec028c
19-
google.golang.org/grpc v1.39.1
20-
google.golang.org/protobuf v1.27.1
21-
gopkg.in/h2non/gock.v1 v1.0.15
22-
k8s.io/api v0.23.3
23-
k8s.io/apimachinery v0.23.3
24-
k8s.io/client-go v0.23.3
25-
k8s.io/code-generator v0.23.3
26-
k8s.io/klog/v2 v2.40.1
10+
github.com/go-logr/zapr v1.2.3
11+
github.com/google/go-cmp v0.5.8
12+
github.com/googleapis/gax-go/v2 v2.4.0
13+
github.com/influxdata/influxdb-client-go/v2 v2.9.0
14+
github.com/prometheus/client_golang v1.12.2
15+
github.com/stretchr/testify v1.7.1
16+
go.uber.org/zap v1.21.0
17+
google.golang.org/api v0.81.0
18+
google.golang.org/genproto v0.0.0-20220527130721-00d5c0f3be58
19+
google.golang.org/grpc v1.46.2
20+
google.golang.org/protobuf v1.28.0
21+
gopkg.in/h2non/gock.v1 v1.1.2
22+
k8s.io/api v0.24.1
23+
k8s.io/apimachinery v0.24.1
24+
k8s.io/client-go v0.24.1
25+
k8s.io/code-generator v0.24.1
26+
k8s.io/klog/v2 v2.60.1
2727
)
2828

29+
// Fix CVE-2022-28948
30+
replace gopkg.in/yaml.v3 => gopkg.in/yaml.v3 v3.0.0
31+
2932
require (
30-
cloud.google.com/go v0.92.3 // indirect
33+
cloud.google.com/go/compute v1.6.1 // indirect
34+
github.com/PuerkitoBio/purell v1.1.1 // indirect
35+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
3136
github.com/beorn7/perks v1.0.1 // indirect
32-
github.com/cespare/xxhash/v2 v2.1.1 // indirect
37+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
3338
github.com/deepmap/oapi-codegen v1.8.2 // indirect
39+
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
3440
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
3541
github.com/go-logr/logr v1.2.2 // indirect
42+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
43+
github.com/go-openapi/jsonreference v0.19.5 // indirect
44+
github.com/go-openapi/swag v0.19.14 // indirect
3645
github.com/gogo/protobuf v1.3.2 // indirect
3746
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
3847
github.com/golang/protobuf v1.5.2 // indirect
48+
github.com/google/gnostic v0.5.7-v3refs // indirect
3949
github.com/google/gofuzz v1.1.0 // indirect
4050
github.com/google/uuid v1.1.2 // indirect
41-
github.com/googleapis/gnostic v0.5.5 // indirect
4251
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect
4352
github.com/imdario/mergo v0.3.5 // indirect
4453
github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839 // indirect
4554
github.com/jmespath/go-jmespath v0.4.0 // indirect
55+
github.com/josharian/intern v1.0.0 // indirect
4656
github.com/json-iterator/go v1.1.12 // indirect
57+
github.com/mailru/easyjson v0.7.6 // indirect
4758
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
4859
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4960
github.com/modern-go/reflect2 v1.0.2 // indirect
61+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5062
github.com/pkg/errors v0.9.1 // indirect
5163
github.com/pmezard/go-difflib v1.0.0 // indirect
5264
github.com/prometheus/client_model v0.2.0 // indirect
53-
github.com/prometheus/common v0.26.0 // indirect
54-
github.com/prometheus/procfs v0.6.0 // indirect
65+
github.com/prometheus/common v0.32.1 // indirect
66+
github.com/prometheus/procfs v0.7.3 // indirect
5567
github.com/spf13/pflag v1.0.5 // indirect
5668
go.opencensus.io v0.23.0 // indirect
5769
go.uber.org/atomic v1.7.0 // indirect
5870
go.uber.org/multierr v1.6.0 // indirect
59-
golang.org/x/mod v0.5.1 // indirect
60-
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
61-
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
62-
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
71+
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect
72+
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect
73+
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect
74+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
6375
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
6476
golang.org/x/text v0.3.7 // indirect
65-
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
66-
golang.org/x/tools v0.1.9 // indirect
67-
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
77+
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
78+
golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717 // indirect
79+
golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df // indirect
6880
google.golang.org/appengine v1.6.7 // indirect
6981
gopkg.in/inf.v0 v0.9.1 // indirect
7082
gopkg.in/yaml.v2 v2.4.0 // indirect
7183
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
7284
k8s.io/gengo v0.0.0-20211129171323-c02415ce4185 // indirect
73-
k8s.io/kube-openapi v0.0.0-20220124234850-424119656bbf // indirect
74-
k8s.io/utils v0.0.0-20211116205334-6203023598ed // indirect
75-
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
85+
k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 // indirect
86+
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect
87+
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
7688
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
7789
sigs.k8s.io/yaml v1.3.0 // indirect
7890
)

0 commit comments

Comments
 (0)