Skip to content

Commit

Permalink
Use release namespace by default for ClusterRoleBinding (#60)
Browse files Browse the repository at this point in the history
This switches the default of the cert-manager namespace to the namespace
this release is going to be installed while still maintaing configurability.
This makes it easier to use a custom namespace for cert-manager because
designate-certmanager-webhook will most certainly just be installed in
the same namespace as cert-manager.
  • Loading branch information
baurmatt authored May 3, 2021
1 parent b2cc2d2 commit b5ce8ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm/designate-certmanager-webhook/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "0.2.12"
description: ACME webhook Implementation for OpenStack Designate
name: designate-certmanager-webhook
version: "0.2.12"
version: "0.2.13"
2 changes: 1 addition & 1 deletion helm/designate-certmanager-webhook/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ subjects:
- apiGroup: ""
kind: ServiceAccount
name: {{ .Values.certManager.serviceAccountName }}
namespace: {{ .Values.certManager.namespace }}
namespace: {{ .Values.certManager.namespace | default .Release.Namespace }}
- apiGroup: ""
kind: ServiceAccount
name: {{ include "designate-certmanager-webhook.fullname" . }}
Expand Down
2 changes: 1 addition & 1 deletion helm/designate-certmanager-webhook/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
replicaCount: 1

certManager:
namespace: cert-manager
namespace: ~
serviceAccountName: cert-manager

image:
Expand Down

0 comments on commit b5ce8ac

Please sign in to comment.