Skip to content

Commit

Permalink
fix(Traefik Hub): RBAC for distributedAcme
Browse files Browse the repository at this point in the history
  • Loading branch information
mloiseleur authored Oct 18, 2024
1 parent f7a96da commit 74abfee
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion traefik/templates/rbac/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ rules:
- get
- list
- watch
{{- if and .Values.hub.token .Values.hub.apimanagement.enabled }}
{{- if and .Values.hub.token }}
- update
- create
- delete
Expand Down
16 changes: 16 additions & 0 deletions traefik/tests/rbac-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,22 @@ tests:
verbs:
- get
- list
- template: rbac/clusterrole.yaml
contains:
path: rules
content:
apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
- update
- create
- delete
- deletecollection
- template: rbac/clusterrole.yaml
contains:
path: rules
Expand Down

0 comments on commit 74abfee

Please sign in to comment.