Skip to content

Commit a2bbbb4

Browse files
[FLINK-38552] Fix FlinkStateSnapshot when operator's namespace not in watchNamespaces
1 parent 70489d9 commit a2bbbb4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

helm/flink-kubernetes-operator/templates/rbac/role.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ metadata:
3030
{{- include "flink-operator.labels" $ | nindent 4 }}
3131
{{- template "flink-operator.rbacRules" $ }}
3232
{{- end }}
33-
{{- /* Give operator the ability to operate on leases in the release namespace */ -}}
33+
{{- /* Give operator the ability to operate on leases in the release namespace and check presence of FlinkStateSnapshot CRD */ -}}
3434
{{- if not (has .Release.Namespace .Values.watchNamespaces) }}
3535
---
3636
apiVersion: rbac.authorization.k8s.io/v1
@@ -53,6 +53,12 @@ rules:
5353
- update
5454
- patch
5555
- delete
56+
- apiGroups:
57+
- flink.apache.org
58+
resources:
59+
- flinkstatesnapshots
60+
verbs:
61+
- list
5662
{{- end }}
5763
{{- end }}
5864
{{- end }}

0 commit comments

Comments
 (0)