Skip to content

Commit 7e6a388

Browse files
authored
Merge pull request #177 from spotahome/slok/k8s-1.28
Update kooper for k8s 1.28 release
2 parents 63749bd + 29a95bd commit 7e6a388

File tree

10 files changed

+177
-762
lines changed

10 files changed

+177
-762
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Check
88
runs-on: ubuntu-latest
99
# Execute the checks inside the container instead the VM.
10-
container: golangci/golangci-lint:v1.53.3-alpine
10+
container: golangci/golangci-lint:v1.54.2-alpine
1111
steps:
1212
- uses: actions/checkout@v3
1313
- run: ./hack/scripts/check.sh
@@ -28,7 +28,7 @@ jobs:
2828
needs: [check, unit-test]
2929
strategy:
3030
matrix:
31-
kubernetes: [1.24.15, 1.25.11, 1.26.6, 1.27.3]
31+
kubernetes: [1.24.15, 1.25.11, 1.26.6, 1.27.3, 1.28.0]
3232
steps:
3333
- uses: actions/checkout@v3
3434
- uses: actions/setup-go@v4

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## [unreleased]
22

3+
## [2.5.0] - 2023-09-04
4+
5+
- Update Kubernetes libraries for 1.28.
6+
- Change resource locks from configmaps to leases.
7+
38
## [2.4.0] - 2023-07-04
49

510
- Update Kubernetes libraries for 1.27.
@@ -128,7 +133,8 @@ This release breaks controllers constructors to allow passing a metrics recorder
128133
- sequential controller implementation.
129134
- Dependencies managed by dep and vendored.
130135

131-
[unreleased]: https://github.com/spotahome/kooper/compare/v2.4.0...HEAD
136+
[unreleased]: https://github.com/spotahome/kooper/compare/v2.5.0...HEAD
137+
[2.4.0]: https://github.com/spotahome/kooper/compare/v2.4.0...v2.5.0
132138
[2.4.0]: https://github.com/spotahome/kooper/compare/v2.3.0...v2.4.0
133139
[2.3.0]: https://github.com/spotahome/kooper/compare/v2.2.0...v2.3.0
134140
[2.2.0]: https://github.com/spotahome/kooper/compare/v2.1.0...v2.2.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Go Report Card](https://goreportcard.com/badge/github.com/spotahome/kooper)](https://goreportcard.com/report/github.com/spotahome/kooper)
55
[![Apache 2 licensed](https://img.shields.io/badge/license-Apache2-blue.svg)](https://raw.githubusercontent.com/spotahome/kooper/master/LICENSE)
66
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/spotahome/kooper)](https://github.com/spotahome/kooper/releases/latest)
7-
![Kubernetes release](https://img.shields.io/badge/Kubernetes-v1.25-green?logo=Kubernetes&style=flat&color=326CE5&logoColor=white)
7+
![Kubernetes release](https://img.shields.io/badge/Kubernetes-v1.28-green?logo=Kubernetes&style=flat&color=326CE5&logoColor=white)
88

99
Kooper is a Go library to create simple and flexible Kubernetes [controllers]/operators, in a fast, decoupled and easy way.
1010

controller/leaderelection/leaderelection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (r *runner) initResourceLock() error {
115115
recorder := eventBroadcaster.NewRecorder(scheme.Scheme, v1.EventSource{Component: r.key, Host: id})
116116

117117
rl, err := resourcelock.New(
118-
resourcelock.ConfigMapsLeasesResourceLock,
118+
resourcelock.LeasesResourceLock,
119119
r.namespace,
120120
r.key,
121121
r.k8scli.CoreV1(),
Lines changed: 28 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,59 @@
11
module github.com/spotahome/kooper/examples/pod-terminator-operator/v2
22

3-
go 1.19
3+
go 1.21
44

55
replace github.com/spotahome/kooper/v2 => ../../
66

77
require (
8-
github.com/sirupsen/logrus v1.9.0
8+
github.com/sirupsen/logrus v1.9.3
99
github.com/spotahome/kooper/v2 v2.2.0
10-
github.com/stretchr/testify v1.8.1
11-
k8s.io/api v0.25.3
12-
k8s.io/apiextensions-apiserver v0.25.3
13-
k8s.io/apimachinery v0.25.3
14-
k8s.io/client-go v0.25.3
10+
github.com/stretchr/testify v1.8.4
11+
k8s.io/api v0.28.1
12+
k8s.io/apiextensions-apiserver v0.28.1
13+
k8s.io/apimachinery v0.28.1
14+
k8s.io/client-go v0.28.1
1515
)
1616

1717
require (
18-
cloud.google.com/go v0.97.0 // indirect
19-
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
20-
github.com/Azure/go-autorest/autorest v0.11.27 // indirect
21-
github.com/Azure/go-autorest/autorest/adal v0.9.20 // indirect
22-
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
23-
github.com/Azure/go-autorest/logger v0.2.1 // indirect
24-
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
25-
github.com/PuerkitoBio/purell v1.1.1 // indirect
26-
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
2718
github.com/davecgh/go-spew v1.1.1 // indirect
28-
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
29-
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
30-
github.com/go-logr/logr v1.2.3 // indirect
31-
github.com/go-openapi/jsonpointer v0.19.5 // indirect
32-
github.com/go-openapi/jsonreference v0.19.5 // indirect
33-
github.com/go-openapi/swag v0.19.14 // indirect
19+
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
20+
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
21+
github.com/go-logr/logr v1.2.4 // indirect
22+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
23+
github.com/go-openapi/jsonreference v0.20.2 // indirect
24+
github.com/go-openapi/swag v0.22.3 // indirect
3425
github.com/gogo/protobuf v1.3.2 // indirect
35-
github.com/golang-jwt/jwt/v4 v4.2.0 // indirect
3626
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
37-
github.com/golang/protobuf v1.5.2 // indirect
38-
github.com/google/gnostic v0.5.7-v3refs // indirect
39-
github.com/google/go-cmp v0.5.8 // indirect
27+
github.com/golang/protobuf v1.5.3 // indirect
28+
github.com/google/gnostic-models v0.6.8 // indirect
29+
github.com/google/go-cmp v0.5.9 // indirect
4030
github.com/google/gofuzz v1.2.0 // indirect
4131
github.com/google/uuid v1.3.0 // indirect
4232
github.com/imdario/mergo v0.3.12 // indirect
4333
github.com/josharian/intern v1.0.0 // indirect
4434
github.com/json-iterator/go v1.1.12 // indirect
45-
github.com/mailru/easyjson v0.7.6 // indirect
35+
github.com/mailru/easyjson v0.7.7 // indirect
4636
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4737
github.com/modern-go/reflect2 v1.0.2 // indirect
4838
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4939
github.com/pkg/errors v0.9.1 // indirect
5040
github.com/pmezard/go-difflib v1.0.0 // indirect
5141
github.com/spf13/pflag v1.0.5 // indirect
52-
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd // indirect
53-
golang.org/x/net v0.7.0 // indirect
54-
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
55-
golang.org/x/sys v0.5.0 // indirect
56-
golang.org/x/term v0.5.0 // indirect
57-
golang.org/x/text v0.7.0 // indirect
58-
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
42+
golang.org/x/net v0.13.0 // indirect
43+
golang.org/x/oauth2 v0.8.0 // indirect
44+
golang.org/x/sys v0.10.0 // indirect
45+
golang.org/x/term v0.10.0 // indirect
46+
golang.org/x/text v0.11.0 // indirect
47+
golang.org/x/time v0.3.0 // indirect
5948
google.golang.org/appengine v1.6.7 // indirect
60-
google.golang.org/protobuf v1.28.1 // indirect
49+
google.golang.org/protobuf v1.30.0 // indirect
6150
gopkg.in/inf.v0 v0.9.1 // indirect
6251
gopkg.in/yaml.v2 v2.4.0 // indirect
6352
gopkg.in/yaml.v3 v3.0.1 // indirect
64-
k8s.io/klog/v2 v2.70.1 // indirect
65-
k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 // indirect
66-
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed // indirect
67-
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
53+
k8s.io/klog/v2 v2.100.1 // indirect
54+
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
55+
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
56+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
6857
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
6958
sigs.k8s.io/yaml v1.3.0 // indirect
7059
)

0 commit comments

Comments
 (0)