From 06add20108fda838ce525957003ab5143bea04e5 Mon Sep 17 00:00:00 2001 From: James Munnelly Date: Wed, 9 May 2018 15:35:40 +0100 Subject: [PATCH] Add clusterResourceNamespace option to chart --- contrib/charts/cert-manager/Chart.yaml | 2 +- contrib/charts/cert-manager/README.md | 1 + contrib/charts/cert-manager/templates/deployment.yaml | 4 ++++ contrib/charts/cert-manager/values.yaml | 5 +++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/contrib/charts/cert-manager/Chart.yaml b/contrib/charts/cert-manager/Chart.yaml index 4bda9f690..1d47fa0ff 100644 --- a/contrib/charts/cert-manager/Chart.yaml +++ b/contrib/charts/cert-manager/Chart.yaml @@ -1,5 +1,5 @@ name: cert-manager -version: v0.3.0-alpha.4 +version: v0.3.0-alpha.5 appVersion: v0.3.0-alpha.2 description: A Helm chart for cert-manager home: https://github.com/jetstack/cert-manager diff --git a/contrib/charts/cert-manager/README.md b/contrib/charts/cert-manager/README.md index 7bb17ede3..24856b3d4 100644 --- a/contrib/charts/cert-manager/README.md +++ b/contrib/charts/cert-manager/README.md @@ -58,6 +58,7 @@ The following table lists the configurable parameters of the cert-manager chart | `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `replicaCount` | Number of cert-manager replicas | `1` | | `createCustomResource` | Create CRD/TPR with this release | `true` | +| `clusterResourceNamespace` | Override the namespace used to store DNS provider credentials etc. for ClusterIssuer resources | Same namespace as cert-manager pod | `certificateResourceShortNames` | Custom aliases for Certificate CRD | `["cert", "certs"]` | | `extraArgs` | Optional flags for cert-manager | `[]` | | `rbac.create` | If `true`, create and use RBAC resources | `true` diff --git a/contrib/charts/cert-manager/templates/deployment.yaml b/contrib/charts/cert-manager/templates/deployment.yaml index 578410a7b..886050e9c 100644 --- a/contrib/charts/cert-manager/templates/deployment.yaml +++ b/contrib/charts/cert-manager/templates/deployment.yaml @@ -30,7 +30,11 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: + {{- if .Values.clusterResourceNamespace }} + - --cluster-resource-namespace={{ .Values.clusterResourceNamespace }} + {{- else }} - --cluster-resource-namespace=$(POD_NAMESPACE) + {{- end }} {{- if .Values.extraArgs }} {{ toYaml .Values.extraArgs | indent 10 }} {{- end }} diff --git a/contrib/charts/cert-manager/values.yaml b/contrib/charts/cert-manager/values.yaml index 4704b7dd8..95e3bd84e 100644 --- a/contrib/charts/cert-manager/values.yaml +++ b/contrib/charts/cert-manager/values.yaml @@ -10,6 +10,11 @@ image: createCustomResource: true +# Override the namespace used to store DNS provider credentials etc. for ClusterIssuer +# resources. By default, the same namespace as cert-manager is deployed within is +# used. This namespace will not be automatically created by the Helm chart. +clusterResourceNamespace: "" + certificateResourceShortNames: ["cert", "certs"] rbac: