Skip to content

Commit

Permalink
add rbac.secret.write
Browse files Browse the repository at this point in the history
`rbac.secret.write` enables cluster wide create and update access to
secrets. Acme needs this access to write new issued certificates.
  • Loading branch information
jcmoraisjr committed Oct 31, 2020
1 parent c455f75 commit e87e9f1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions haproxy-ingress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ The following table lists the configurable parameters of the HAProxy Ingress cha
Parameter | Description | Default
--- | --- | ---
`rbac.create` | If true, create & use RBAC resources | `true`
`rbac.secret.write` | If true, and rbac.create is true, add write access to secrets, used by acme | `false`
`rbac.security.enable` | If true, and rbac.create is true, create & use PSP resources | `false`
`serviceAccount.create` | If true, create serviceAccount | `true`
`serviceAccount.name` | ServiceAccount to be used | ``
Expand Down
9 changes: 9 additions & 0 deletions haproxy-ingress/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ rules:
- get
- list
- watch
{{- if .Values.rbac.secret.write }}
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- update
{{- end }}
- apiGroups:
- ""
resources:
Expand Down
2 changes: 2 additions & 0 deletions haproxy-ingress/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Enable RBAC
rbac:
create: true
secret:
write: false
security:
enable: false

Expand Down

0 comments on commit e87e9f1

Please sign in to comment.