Skip to content

Commit 91631c1

Browse files
committed
chore: Restore permissions that are needed by the topology provider
1 parent 20c927b commit 91631c1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

deploy/helm/hdfs-operator/templates/clusterrole-product.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ metadata:
88
labels:
99
{{- include "operator.labels" . | nindent 4 }}
1010
rules:
11+
# List and get pods for peer discovery (e.g. format-namenodes discovering namenode peers).
12+
# These must live here in the product ClusterRole (not just in the nodes ClusterRole) because
13+
# the nodes ClusterRoleBinding is updated asynchronously and may not yet include this service
14+
# account when format-namenodes runs for the first time.
15+
- apiGroups:
16+
- ""
17+
resources:
18+
- pods
19+
verbs:
20+
- get
21+
- list
22+
- watch
1123
{{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }}
1224
# Required on OpenShift to allow HDFS pods to run as a non-root user.
1325
- apiGroups:

0 commit comments

Comments
 (0)