Skip to content

Commit dec191f

Browse files
committed
Restrict role just to the helm chart pod
1 parent 9818241 commit dec191f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

charts/ibm-mq/templates/role.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,11 @@ metadata:
66
rules:
77
- apiGroups: [""]
88
resources: ["pods"]
9+
resourceNames: [
10+
{{ include "ibm-mq.pod0.name" . }},
11+
{{- if .Values.queueManager.nativeha.enable }}
12+
{{ include "ibm-mq.pod1.name" . }},
13+
{{ include "ibm-mq.pod2.name" . }}
14+
{{- end }}
15+
]
916
verbs: ["get", "list","patch"]

0 commit comments

Comments
 (0)