Skip to content

Commit

Permalink
Tiller TLS CA validation (#616)
Browse files Browse the repository at this point in the history
* Tiller TLS CA validation

* Use require instead

* Remove params
  • Loading branch information
migmartri committed Sep 12, 2018
1 parent bf27e31 commit f352719
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chart/kubeapps/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v1
name: kubeapps
version: 0.4.2
version: 0.4.3
appVersion: DEVEL
description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm
icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png
Expand Down
4 changes: 4 additions & 0 deletions chart/kubeapps/templates/tiller-proxy-secret.yaml
@@ -1,4 +1,6 @@
# The tls ca certificate is only required when tls.verify is set to true, we fail otherwise.
{{- if .Values.tillerProxy.tls -}}
{{ required "A valid CA certificate \".Values.tillerProxy.tls.ca\" needs to be provided if tls-verify is set to true" (and .Values.tillerProxy.tls.verify .Values.tillerProxy.tls.ca) }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -9,8 +11,10 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
{{- if .Values.tillerProxy.tls.ca }}
ca.crt: |-
{{ .Values.tillerProxy.tls.ca | b64enc | indent 4 }}
{{- end }}
tls.crt: |-
{{ .Values.tillerProxy.tls.cert | b64enc | indent 4 }}
tls.key: |-
Expand Down

0 comments on commit f352719

Please sign in to comment.