diff --git a/stable/cert-manager/Chart.yaml b/stable/cert-manager/Chart.yaml index 631410a3bc..063ff4af74 100644 --- a/stable/cert-manager/Chart.yaml +++ b/stable/cert-manager/Chart.yaml @@ -1,6 +1,6 @@ name: cert-manager -version: v0.3.4 -appVersion: v0.3.2 +version: v0.4.0 +appVersion: v0.4.0 description: A Helm chart for cert-manager home: https://github.com/jetstack/cert-manager keywords: diff --git a/stable/cert-manager/README.md b/stable/cert-manager/README.md index 6b08c071d7..0fb14075af 100644 --- a/stable/cert-manager/README.md +++ b/stable/cert-manager/README.md @@ -54,7 +54,7 @@ The following table lists the configurable parameters of the cert-manager chart | Parameter | Description | Default | | --------- | ----------- | ------- | | `image.repository` | Image repository | `quay.io/jetstack/cert-manager-controller` | -| `image.tag` | Image tag | `v0.3.2` | +| `image.tag` | Image tag | `v0.4.0` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `replicaCount` | Number of cert-manager replicas | `1` | | `createCustomResource` | Create CRD/TPR with this release | `true` | @@ -62,6 +62,7 @@ The following table lists the configurable parameters of the cert-manager chart | `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 | `[]` | +| `extraEnv` | Optional environment variables for cert-manager | `[]` | | `rbac.create` | If `true`, create and use RBAC resources | `true` | | `serviceAccount.create` | If `true`, create a new service account | `true` | | `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the fullname template | | @@ -77,6 +78,9 @@ The following table lists the configurable parameters of the cert-manager chart | `podDnsPolicy` | Optional cert-manager pod [DNS policy](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pods-dns-policy) | | | `podDnsConfig` | Optional cert-manager pod [DNS configurations](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pods-dns-config) | | | `podLabels` | Labels to add to the cert-manager pod | `{}` | +| `http_proxy` | Value of the `HTTP_PROXY` environment variable in the cert-manager pod | | +| `https_proxy` | Value of the `HTTPS_PROXY` environment variable in the cert-manager pod | | +| `no_proxy` | Value of the `NO_PROXY` environment variable in the cert-manager pod | | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. diff --git a/stable/cert-manager/templates/_helpers.tpl b/stable/cert-manager/templates/_helpers.tpl index 5883b323d9..c411d7a5c3 100644 --- a/stable/cert-manager/templates/_helpers.tpl +++ b/stable/cert-manager/templates/_helpers.tpl @@ -11,9 +11,16 @@ Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} {{- define "cert-manager.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} {{- $name := default .Chart.Name .Values.nameOverride -}} -{{- $fullname := printf "%s-%s" $name .Release.Name -}} -{{- default $fullname .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} {{- end -}} {{/* diff --git a/stable/cert-manager/templates/deployment.yaml b/stable/cert-manager/templates/deployment.yaml index 23d57f815f..5a48c79420 100644 --- a/stable/cert-manager/templates/deployment.yaml +++ b/stable/cert-manager/templates/deployment.yaml @@ -65,6 +65,21 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + {{- if .Values.extraEnv }} +{{ toYaml .Values.extraEnv | indent 10 }} + {{- end }} + {{- if .Values.http_proxy }} + - name: HTTP_PROXY + value: {{ .Values.http_proxy }} + {{- end }} + {{- if .Values.https_proxy }} + - name: HTTPS_PROXY + value: {{ .Values.https_proxy }} + {{- end }} + {{- if .Values.no_proxy }} + - name: NO_PROXY + value: {{ .Values.no_proxy }} + {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }} diff --git a/stable/cert-manager/values.yaml b/stable/cert-manager/values.yaml index 3b3a601a1f..67d9308ac8 100644 --- a/stable/cert-manager/values.yaml +++ b/stable/cert-manager/values.yaml @@ -5,7 +5,7 @@ replicaCount: 1 image: repository: quay.io/jetstack/cert-manager-controller - tag: v0.3.2 + tag: v0.4.0 pullPolicy: IfNotPresent createCustomResource: true @@ -38,6 +38,10 @@ extraArgs: [] # supporting resources required for each ClusterIssuer (default is kube-system) # - --cluster-resource-namespace=kube-system +extraEnv: [] +# - name: SOME_VAR +# value: 'some value' + resources: {} # requests: # cpu: 10m @@ -69,3 +73,8 @@ ingressShim: {} # namespace manifest for the namespace that cert-manager is being installed # within. It should **not** be used if you are using Helm for deployment. createNamespaceResource: false + +# Use these variables to configure the HTTP_PROXY environment variables +# http_proxy: "http://proxy:8080" +# http_proxy: "http://proxy:8080" +# no_proxy: 127.0.0.1,localhost