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 f16fb40
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions component/olm.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,21 @@ local patchManifests = function(file, has_csv)
resources: [ 'leases' ],
verbs: [ 'create', 'get', 'update', 'list', 'delete' ],
},
// 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',
'get',
'update',
'list',
'delete',
'deletecollection',
],
},
] + if util.version.minor <= 15 then [
// cilium <= 1.15 uses a clusterrole and clusterrolebinding for the
// hubble certgen cronjob. This is changed to a role and rolebinding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ rules:
- update
- list
- delete
- apiGroups:
- cert-manager.io
resources:
- certificates
verbs:
- create
- get
- update
- list
- delete
- deletecollection
- apiGroups:
- ''
resources:
Expand Down

0 comments on commit f16fb40

Please sign in to comment.