Skip to content

Commit

Permalink
Add certificates to Role with a flag (#213)
Browse files Browse the repository at this point in the history
* Added certificates to role with a flag

* Fix typo in role.yaml

* Fixed line break
  • Loading branch information
portega-adv authored Nov 17, 2023
1 parent 9e796d6 commit caa8457
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions helm/fiaas-deploy-daemon/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,14 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{ toYaml . }}
{{- end -}}
{{- end -}}

{{- define "fiaas-deploy-daemon.RoleCertificateRules" -}}
- apiGroups:
- cert-manager.io/v1
resources:
- certificates
verbs:
- get
- list
- watch
{{- end -}}
3 changes: 3 additions & 0 deletions helm/fiaas-deploy-daemon/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ rules:
- list
- update
- watch
{{- if .Values.rbac.role.enableCertificates }}
{{ include "fiaas-deploy-daemon.RoleCertificateRules" . }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions helm/fiaas-deploy-daemon/values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ rbac:
create: true
labels: {}
annotations: {}
enableCertificates: false
roleBinding:
create: true
labels: {}
Expand Down

0 comments on commit caa8457

Please sign in to comment.