Skip to content

Commit fd36f99

Browse files
laveryaaar10n
andauthored
fix: add rbac permissions to read legacy replicated-sdk configmap (#301)
* fix: add rbac permissions to read legacy replicated-sdk configmap * move configmap permission inside the minimal rbac block * fixup whitespace --------- Co-authored-by: Aaron Gill-Braun <[email protected]>
1 parent ffe8e71 commit fd36f99

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

chart/templates/replicated-role.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ rules:
8080
- "get"
8181
resourceNames:
8282
- {{ include "replicated.secretName" . }}
83+
# the legacy replicated-sdk configmap is required when the SDK secret is not found
84+
- apiGroups:
85+
- ''
86+
resources:
87+
- 'configmaps'
88+
verbs:
89+
- 'get'
90+
resourceNames:
91+
- 'replicated-sdk'
8392

8493
{{ if not .Values.statusInformers }}
8594
# the SDK needs to get the helm chart secret to determine what resources to report

0 commit comments

Comments
 (0)