Skip to content

Commit f24b9ed

Browse files
committed
Support kubernetes 1.31
Also drop 1.28 support. Signed-off-by: Toshikuni Fukaya <[email protected]>
1 parent 6100e49 commit f24b9ed

File tree

9 files changed

+123
-145
lines changed

9 files changed

+123
-145
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
kubernetes_versions: ["1.30", "1.29", "1.28"]
20+
kubernetes_versions: ["1.31", "1.30", "1.29"]
2121
env:
2222
KUBERNETES_VERSION: ${{ matrix.kubernetes_versions }}
2323
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pie verifies that PVs are successfully provisioned on the specified nodes for th
1212

1313
## Supported environments
1414

15-
- Kubernetes: 1.30, 1.29, 1.28
15+
- Kubernetes: 1.31, 1.30, 1.29
1616

1717
## Getting Started
1818
### Running on the cluster

charts/pie/templates/pie.topolvm.io_pieprobes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.16.4
77
name: pieprobes.pie.topolvm.io
88
spec:
99
group: pie.topolvm.io

charts/pie/templates/role.yaml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ metadata:
5656
namespace: {{ .Release.Namespace }}
5757
rules:
5858
- apiGroups:
59-
- batch
59+
- ""
6060
resources:
61-
- cronjobs
61+
- persistentvolumeclaims
62+
- pods
6263
verbs:
6364
- create
6465
- delete
@@ -70,16 +71,7 @@ rules:
7071
- apiGroups:
7172
- batch
7273
resources:
73-
- jobs
74-
verbs:
75-
- delete
76-
- get
77-
- list
78-
- watch
79-
- apiGroups:
80-
- ""
81-
resources:
82-
- persistentvolumeclaims
74+
- cronjobs
8375
verbs:
8476
- create
8577
- delete
@@ -89,16 +81,13 @@ rules:
8981
- update
9082
- watch
9183
- apiGroups:
92-
- ""
84+
- batch
9385
resources:
94-
- pods
86+
- jobs
9587
verbs:
96-
- create
9788
- delete
9889
- get
9990
- list
100-
- patch
101-
- update
10291
- watch
10392
---
10493
# permissions to do leader election.

config/crd/bases/pie.topolvm.io_pieprobes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.16.4
77
name: pieprobes.pie.topolvm.io
88
spec:
99
group: pie.topolvm.io

config/rbac/role.yaml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ metadata:
5757
namespace: default
5858
rules:
5959
- apiGroups:
60-
- batch
60+
- ""
6161
resources:
62-
- cronjobs
62+
- persistentvolumeclaims
63+
- pods
6364
verbs:
6465
- create
6566
- delete
@@ -71,16 +72,7 @@ rules:
7172
- apiGroups:
7273
- batch
7374
resources:
74-
- jobs
75-
verbs:
76-
- delete
77-
- get
78-
- list
79-
- watch
80-
- apiGroups:
81-
- ""
82-
resources:
83-
- persistentvolumeclaims
75+
- cronjobs
8476
verbs:
8577
- create
8678
- delete
@@ -90,14 +82,11 @@ rules:
9082
- update
9183
- watch
9284
- apiGroups:
93-
- ""
85+
- batch
9486
resources:
95-
- pods
87+
- jobs
9688
verbs:
97-
- create
9889
- delete
9990
- get
10091
- list
101-
- patch
102-
- update
10392
- watch

go.mod

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,73 +3,73 @@ module github.com/topolvm/pie
33
go 1.22.0
44

55
require (
6-
github.com/onsi/ginkgo/v2 v2.19.0
7-
github.com/onsi/gomega v1.33.1
8-
github.com/prometheus/client_golang v1.16.0
9-
github.com/prometheus/client_model v0.4.0
10-
github.com/prometheus/common v0.44.0
6+
github.com/onsi/ginkgo/v2 v2.20.2
7+
github.com/onsi/gomega v1.34.2
8+
github.com/prometheus/client_golang v1.19.1
9+
github.com/prometheus/client_model v0.6.1
10+
github.com/prometheus/common v0.55.0
1111
github.com/spf13/cobra v1.8.1
12-
k8s.io/api v0.30.0
13-
k8s.io/apimachinery v0.30.0
14-
k8s.io/client-go v0.30.0
15-
k8s.io/component-helpers v0.30.0
12+
k8s.io/api v0.31.2
13+
k8s.io/apimachinery v0.31.2
14+
k8s.io/client-go v0.31.2
15+
k8s.io/component-helpers v0.31.2
1616
k8s.io/klog/v2 v2.130.1
17-
sigs.k8s.io/controller-runtime v0.18.2
17+
sigs.k8s.io/controller-runtime v0.19.0
1818
sigs.k8s.io/yaml v1.4.0
1919
)
2020

2121
require (
2222
github.com/beorn7/perks v1.0.1 // indirect
23-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
24-
github.com/davecgh/go-spew v1.1.1 // indirect
23+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
24+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2525
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
2626
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
2727
github.com/fsnotify/fsnotify v1.7.0 // indirect
28-
github.com/go-logr/logr v1.4.1 // indirect
28+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
29+
github.com/go-logr/logr v1.4.2 // indirect
2930
github.com/go-logr/zapr v1.3.0 // indirect
3031
github.com/go-openapi/jsonpointer v0.19.6 // indirect
3132
github.com/go-openapi/jsonreference v0.20.2 // indirect
32-
github.com/go-openapi/swag v0.22.3 // indirect
33+
github.com/go-openapi/swag v0.22.4 // indirect
3334
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
3435
github.com/gogo/protobuf v1.3.2 // indirect
3536
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
3637
github.com/golang/protobuf v1.5.4 // indirect
3738
github.com/google/gnostic-models v0.6.8 // indirect
3839
github.com/google/go-cmp v0.6.0 // indirect
3940
github.com/google/gofuzz v1.2.0 // indirect
40-
github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 // indirect
41-
github.com/google/uuid v1.3.0 // indirect
41+
github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 // indirect
42+
github.com/google/uuid v1.6.0 // indirect
4243
github.com/imdario/mergo v0.3.12 // indirect
4344
github.com/inconshreveable/mousetrap v1.1.0 // indirect
4445
github.com/josharian/intern v1.0.0 // indirect
4546
github.com/json-iterator/go v1.1.12 // indirect
4647
github.com/mailru/easyjson v0.7.7 // indirect
47-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
4848
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4949
github.com/modern-go/reflect2 v1.0.2 // indirect
5050
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5151
github.com/pkg/errors v0.9.1 // indirect
52-
github.com/prometheus/procfs v0.12.0 // indirect
52+
github.com/prometheus/procfs v0.15.1 // indirect
5353
github.com/spf13/pflag v1.0.5 // indirect
54+
github.com/x448/float16 v0.8.4 // indirect
5455
go.uber.org/multierr v1.11.0 // indirect
5556
go.uber.org/zap v1.26.0 // indirect
56-
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
57-
golang.org/x/net v0.25.0 // indirect
58-
golang.org/x/oauth2 v0.12.0 // indirect
59-
golang.org/x/sys v0.20.0 // indirect
60-
golang.org/x/term v0.20.0 // indirect
61-
golang.org/x/text v0.15.0 // indirect
57+
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
58+
golang.org/x/net v0.28.0 // indirect
59+
golang.org/x/oauth2 v0.21.0 // indirect
60+
golang.org/x/sys v0.24.0 // indirect
61+
golang.org/x/term v0.23.0 // indirect
62+
golang.org/x/text v0.17.0 // indirect
6263
golang.org/x/time v0.3.0 // indirect
63-
golang.org/x/tools v0.21.0 // indirect
64+
golang.org/x/tools v0.24.0 // indirect
6465
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
65-
google.golang.org/appengine v1.6.7 // indirect
66-
google.golang.org/protobuf v1.33.0 // indirect
66+
google.golang.org/protobuf v1.34.2 // indirect
6767
gopkg.in/inf.v0 v0.9.1 // indirect
6868
gopkg.in/yaml.v2 v2.4.0 // indirect
6969
gopkg.in/yaml.v3 v3.0.1 // indirect
70-
k8s.io/apiextensions-apiserver v0.30.0 // indirect
70+
k8s.io/apiextensions-apiserver v0.31.0 // indirect
7171
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
72-
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
72+
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
7373
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
7474
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
7575
)

0 commit comments

Comments
 (0)