Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Commit e0505bb

Browse files
munnerzk8s-ci-robot
authored andcommitted
cert-manager: fast-forward to upstream 3945595b (#7644)
* cert-manager: fast-forward to upstream bcffc635 * Update version numbers for v0.5.0 (cert-manager/cert-manager#885) * added affinity and tolerations (cert-manager/cert-manager#869) * Add validating webhook and webhook tls autoconfiguration (cert-manager/cert-manager#478) * chart: annotate all CRDs with "crd-install" hook (cert-manager/cert-manager#823) * helm chart: remove endpoints from rbac resources (cert-manager/cert-manager#769) Signed-off-by: James Munnelly <[email protected]> * Update image tag and add description Signed-off-by: James Munnelly <[email protected]>
1 parent ec510c7 commit e0505bb

24 files changed

Lines changed: 680 additions & 11 deletions

‎stable/cert-manager/Chart.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: cert-manager
2-
version: v0.4.1
3-
appVersion: v0.4.1
2+
version: v0.5.0
3+
appVersion: v0.5.0
44
description: A Helm chart for cert-manager
55
home: https://github.com/jetstack/cert-manager
66
keywords:

‎stable/cert-manager/README.md‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The following table lists the configurable parameters of the cert-manager chart
5454
| Parameter | Description | Default |
5555
| --------- | ----------- | ------- |
5656
| `image.repository` | Image repository | `quay.io/jetstack/cert-manager-controller` |
57-
| `image.tag` | Image tag | `v0.4.1` |
57+
| `image.tag` | Image tag | `v0.5.0` |
5858
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
5959
| `replicaCount` | Number of cert-manager replicas | `1` |
6060
| `createCustomResource` | Create CRD/TPR with this release | `true` |
@@ -66,7 +66,7 @@ The following table lists the configurable parameters of the cert-manager chart
6666
| `rbac.create` | If `true`, create and use RBAC resources | `true` |
6767
| `serviceAccount.create` | If `true`, create a new service account | `true` |
6868
| `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the fullname template | |
69-
| `resources` | CPU/memory resource requests/limits | `requests: {cpu: 10m, memory: 32Mi}` |
69+
| `resources` | CPU/memory resource requests/limits | |
7070
| `nodeSelector` | Node labels for pod assignment | `{}` |
7171
| `affinity` | Node affinity for pod assignment | `{}` |
7272
| `tolerations` | Node tolerations for pod assignment | `[]` |
@@ -81,6 +81,14 @@ The following table lists the configurable parameters of the cert-manager chart
8181
| `http_proxy` | Value of the `HTTP_PROXY` environment variable in the cert-manager pod | |
8282
| `https_proxy` | Value of the `HTTPS_PROXY` environment variable in the cert-manager pod | |
8383
| `no_proxy` | Value of the `NO_PROXY` environment variable in the cert-manager pod | |
84+
| `webhook.enabled` | Toggles whether the validating webhook component should be installed | `false` |
85+
| `webhook.replicaCount` | Number of cert-manager webhook replicas | `1` |
86+
| `webhook.podAnnotations` | Annotations to add to the webhook pods | `{}` |
87+
| `webhook.extraArgs` | Optional flags for cert-manager webhook component | `[]` |
88+
| `webhook.resources` | CPU/memory resource requests/limits for the webhook pods | |
89+
| `webhook.image.repository` | Webhook image repository | `quay.io/jetstack/cert-manager-webhook` |
90+
| `webhook.image.tag` | Webhook image tag | `v0.5.0` |
91+
| `webhook.image.pullPolicy` | Webhook image pull policy | `IfNotPresent` |
8492

8593
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
8694

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: webhook
3+
repository: file://webhook
4+
version: v0.5.0
5+
digest: sha256:1a599fad18dc75842074c7ab10a66cebce521f27fa94ab6642d744479694200e
6+
generated: 2018-09-10T15:39:26.405370694+01:00
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# requirements.yaml
2+
dependencies:
3+
- name: webhook
4+
version: "v0.5.0"
5+
repository: "file://webhook"
6+
condition: webhook.enabled

‎stable/cert-manager/templates/00-namespace.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ apiVersion: v1
33
kind: Namespace
44
metadata:
55
name: {{ .Release.Namespace | quote }}
6+
labels:
7+
name: {{ .Release.Namespace | quote }}
8+
certmanager.k8s.io/disable-validation: "true"
69
{{- end }}

‎stable/cert-manager/templates/certificate-crd.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ apiVersion: apiextensions.k8s.io/v1beta1
33
kind: CustomResourceDefinition
44
metadata:
55
name: certificates.certmanager.k8s.io
6+
{{- if semverCompare ">=2.10-0" .Capabilities.TillerVersion.SemVer }}
7+
annotations:
8+
"helm.sh/hook": crd-install
9+
{{- end }}
610
labels:
711
app: {{ template "cert-manager.name" . }}
812
chart: {{ template "cert-manager.chart" . }}

‎stable/cert-manager/templates/clusterissuer-crd.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ apiVersion: apiextensions.k8s.io/v1beta1
33
kind: CustomResourceDefinition
44
metadata:
55
name: clusterissuers.certmanager.k8s.io
6+
{{- if semverCompare ">=2.10-0" .Capabilities.TillerVersion.SemVer }}
7+
annotations:
8+
"helm.sh/hook": crd-install
9+
{{- end }}
610
labels:
711
app: {{ template "cert-manager.name" . }}
812
chart: {{ template "cert-manager.chart" . }}

‎stable/cert-manager/templates/deployment.yaml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ spec:
5959
{{- if .defaultACMEDNS01ChallengeProvider }}
6060
- --default-acme-issuer-dns01-provider-name={{ .defaultACMEDNS01ChallengeProvider }}
6161
{{- end }}
62+
{{- end }}
63+
{{- if .Values.affinity }}
64+
affinity:
65+
{{ toYaml .Values.affinity | indent 10 }}
66+
{{- end }}
67+
{{- if .Values.tolerations }}
68+
tolerations:
69+
{{ toYaml .Values.tolerations | indent 10 }}
6270
{{- end }}
6371
env:
6472
- name: POD_NAMESPACE

‎stable/cert-manager/templates/issuer-crd.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ apiVersion: apiextensions.k8s.io/v1beta1
33
kind: CustomResourceDefinition
44
metadata:
55
name: issuers.certmanager.k8s.io
6+
{{- if semverCompare ">=2.10-0" .Capabilities.TillerVersion.SemVer }}
7+
annotations:
8+
"helm.sh/hook": crd-install
9+
{{- end }}
610
labels:
711
app: {{ template "cert-manager.name" . }}
812
chart: {{ template "cert-manager.chart" . }}

‎stable/cert-manager/templates/rbac.yaml‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ rules:
1313
resources: ["certificates", "issuers", "clusterissuers"]
1414
verbs: ["*"]
1515
- apiGroups: [""]
16-
# TODO: remove endpoints once 0.4 is released. We include it here in case
17-
# users use the 'master' version of the Helm chart with a 0.2.x release of
18-
# cert-manager that still performs leader election with Endpoint resources.
19-
# We advise users don't do this, but some will anyway and this will reduce
20-
# friction.
21-
resources: ["endpoints", "configmaps", "secrets", "events", "services", "pods"]
16+
resources: ["configmaps", "secrets", "events", "services", "pods"]
2217
verbs: ["*"]
2318
- apiGroups: ["extensions"]
2419
resources: ["ingresses"]

0 commit comments

Comments
 (0)