Skip to content

Commit 6224454

Browse files
feat(redis-ha): add EndpointSlices RBAC support (#394) (#409)
Kubernetes v1.33 deprecates the Endpoints API in favor of EndpointSlices (discovery.k8s.io). Grant the redis-ha and haproxy Roles get access to endpointslices alongside the existing endpoints permission so the chart keeps working on newer clusters while remaining backward compatible.
1 parent 2e2539a commit 6224454

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

charts/redis-ha/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords:
55
- redis
66
- keyvalue
77
- database
8-
version: 4.38.0
8+
version: 4.39.0
99
appVersion: 8.8.0
1010
description: This Helm chart provides a highly available Redis implementation with a master/slave configuration and uses Sentinel sidecars for failover management
1111
icon: https://img.icons8.com/external-tal-revivo-shadow-tal-revivo/24/external-redis-an-in-memory-data-structure-project-implementing-a-distributed-logo-shadow-tal-revivo.png

charts/redis-ha/templates/redis-ha-role.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,11 @@ rules:
1616
- endpoints
1717
verbs:
1818
- get
19+
# EndpointSlices supersede the Endpoints API, which is deprecated as of Kubernetes v1.33.
20+
- apiGroups:
21+
- discovery.k8s.io
22+
resources:
23+
- endpointslices
24+
verbs:
25+
- get
1926
{{- end }}

charts/redis-ha/templates/redis-haproxy-role.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,12 @@ rules:
1818
- endpoints
1919
verbs:
2020
- get
21+
# EndpointSlices supersede the Endpoints API, which is deprecated as of Kubernetes v1.33.
22+
- apiGroups:
23+
- discovery.k8s.io
24+
resources:
25+
- endpointslices
26+
verbs:
27+
- get
2128
{{- end }}
2229
{{- end }}

0 commit comments

Comments
 (0)