Skip to content

Commit

Permalink
Merge pull request #143 from projectsyn/fix/olm-event-rbac
Browse files Browse the repository at this point in the history
Only patch OLM `events` RBAC if `patch` verb is missing
  • Loading branch information
simu authored Sep 20, 2024
2 parents a164ebd + af7fcf1 commit 7a89c15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion component/olm.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ local patchManifests = function(file, has_csv)
file {
contents+: {
rules: [
if r.apiGroups == [ '' ] && r.resources == [ 'events' ] then
if
r.apiGroups == [ '' ]
&& r.resources == [ 'events' ]
&& !std.member(r.verbs, 'patch')
then
r {
verbs+: [ 'patch' ],
}
Expand Down

0 comments on commit 7a89c15

Please sign in to comment.