Add leaderElection.namespace option to helm chart

This commit is contained in:
James Munnelly 2018-05-09 16:54:25 +01:00
parent 7afd71faf2
commit e7ed856e20
4 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,5 @@
name: cert-manager
version: v0.3.0-alpha.5
version: v0.3.0-alpha.6
appVersion: v0.3.0-alpha.2
description: A Helm chart for cert-manager
home: https://github.com/jetstack/cert-manager

View File

@ -59,6 +59,7 @@ The following table lists the configurable parameters of the cert-manager chart
| `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
| `leaderElection.Namespace` | Override the namespace used to store the ConfigMap for leader election | 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`

View File

@ -35,6 +35,11 @@ spec:
{{- else }}
- --cluster-resource-namespace=$(POD_NAMESPACE)
{{- end }}
{{- if .Values.leaderElection.namespace }}
- --leader-election-namespace={{ .Values.leaderElection.namespace }}
{{- else }}
- --leader-election-namespace=$(POD_NAMESPACE)
{{- end }}
{{- if .Values.extraArgs }}
{{ toYaml .Values.extraArgs | indent 10 }}
{{- end }}

View File

@ -15,6 +15,10 @@ createCustomResource: true
# used. This namespace will not be automatically created by the Helm chart.
clusterResourceNamespace: ""
leaderElection:
# Override the namespace used to store the ConfigMap for leader election
namespace: ""
certificateResourceShortNames: ["cert", "certs"]
rbac: