Skip to content

Commit 100a0c6

Browse files
author
Sergiy Markin
committed
ceph: Add endpointslices to hardcoded RBAC roles
Add ``endpointslices`` resource and ``discovery.k8s.io`` API group to hardcoded Role/ClusterRole definitions in ceph charts. This is required for ``kubernetes-entrypoint`` (dep_check) which now uses EndpointSlices instead of Endpoints to resolve service dependencies. Affected charts: - ceph-client: clusterrole-checkdns ClusterRole - ceph-mon: daemonset-mon Role - ceph-provisioners: namespace client config generator Role - ceph-rgw: cross-namespace Role for ceph_mon namespace Change-Id: If4b772615a75e73beada29970f393b7ed7ac8301 Signed-off-by: Sergiy Markin <smarkin@mirantis.com>
1 parent 7d1f91e commit 100a0c6

8 files changed

Lines changed: 40 additions & 0 deletions

File tree

ceph-client/templates/deployment-checkdns.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ metadata:
3232
rules:
3333
- apiGroups:
3434
- ""
35+
- discovery.k8s.io
3536
resources:
3637
- pods
3738
- endpoints
39+
- endpointslices
3840
- pods/exec
3941
- namespaces
4042
verbs:

ceph-mon/templates/daemonset-mon.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ metadata:
3737
rules:
3838
- apiGroups:
3939
- ""
40+
- discovery.k8s.io
4041
resources:
4142
- pods
4243
- endpoints
44+
- endpointslices
4345
verbs:
4446
- get
4547
- list

ceph-provisioners/templates/job-namespace-client-ceph-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ metadata:
6060
rules:
6161
- apiGroups:
6262
- ""
63+
- discovery.k8s.io
6364
resources:
6465
- endpoints
66+
- endpointslices
6567
verbs:
6668
- get
6769
- list

ceph-rgw/templates/deployment-rgw.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ metadata:
6868
rules:
6969
- apiGroups:
7070
- ""
71+
- discovery.k8s.io
7172
resources:
7273
- endpoints
74+
- endpointslices
7375
verbs:
7476
- get
7577
- list
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
fixes:
3+
- |
4+
Add ``endpointslices`` resource and ``discovery.k8s.io`` API group to
5+
the ``clusterrole-checkdns`` ClusterRole. This is required for
6+
``kubernetes-entrypoint`` (dep_check) which now uses EndpointSlices
7+
instead of Endpoints to resolve service dependencies.
8+
...
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
fixes:
3+
- |
4+
Add ``endpointslices`` resource and ``discovery.k8s.io`` API group to
5+
the ceph-mon DaemonSet Role. This is required for ``kubernetes-entrypoint``
6+
(dep_check) which now uses EndpointSlices instead of Endpoints to resolve
7+
service dependencies.
8+
...
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
fixes:
3+
- |
4+
Add ``endpointslices`` resource and ``discovery.k8s.io`` API group to
5+
the ceph-provisioners namespace client config generator Role. This is
6+
required for ``kubernetes-entrypoint`` (dep_check) which now uses
7+
EndpointSlices instead of Endpoints to resolve service dependencies.
8+
...
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
fixes:
3+
- |
4+
Add ``endpointslices`` resource and ``discovery.k8s.io`` API group to
5+
the ceph-rgw cross-namespace Role for the ceph_mon namespace. This is
6+
required for ``kubernetes-entrypoint`` (dep_check) which now uses
7+
EndpointSlices instead of Endpoints to resolve service dependencies.
8+
...

0 commit comments

Comments
 (0)