Skip to content

Commit

Permalink
Grant OLM operator permissions to manage cert-manager certificates
Browse files Browse the repository at this point in the history
This is required when setting `method: certmanager` for some Cilium TLS
configuration (e.g. Hubble TLS).
  • Loading branch information
simu committed Jan 14, 2025
1 parent f8b6463 commit e9aec15
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions component/olm.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,24 @@ local patchManifests = function(file, has_csv)
else
r
for r in super.rules
] + [
// Grant OLM operator permission to manage cert-manager certificate
// resources. This is required when setting `method: certmanager`
// for some Cilium TLS configuration (e.g. Hubble TLS).
{
apiGroups: [ 'cert-manager.io' ],
resources: [ 'certificates' ],
verbs: [
'create',
'delete',
'deletecollection',
'get',
'list',
'patch',
'update',
'watch',
],
},
],
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,16 @@ rules:
- servicemonitors
verbs:
- '*'
- apiGroups:
- cert-manager.io
resources:
- certificates
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch

0 comments on commit e9aec15

Please sign in to comment.