Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions helm/openwhisk/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,14 @@ imagePullSecrets:
{{/* nginx cert */}}
{{- define "openwhisk.nginx_cert" -}}
{{- if .Values.nginx.certificate.external }}
{{ .Files.Get .Values.nginx.certificate.cert_file }}
{{ .Files.Get .Values.nginx.certificate.cert_file | b64enc }}
{{- end -}}
{{- end -}}

{{/* nginx key */}}
{{- define "openwhisk.nginx_key" -}}
{{- if .Values.nginx.certificate.external }}
{{ .Files.Get .Values.nginx.certificate.key_file }}
{{ .Files.Get .Values.nginx.certificate.key_file | b64enc }}
{{- end -}}
{{- end -}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

{{- if or (eq .Values.whisk.ingress.type "NodePort") (eq .Values.whisk.ingress.type "LoadBalancer") }}
apiVersion: v1
kind: ConfigMap
kind: Secret
metadata:
name: {{ .Release.Name }}-gen-certs
labels:
Expand Down
4 changes: 2 additions & 2 deletions helm/openwhisk/templates/nginx-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ spec:
{{- if or (eq .Values.whisk.ingress.type "NodePort") (eq .Values.whisk.ingress.type "LoadBalancer") }}
{{- if .Values.nginx.certificate.external }}
- name: nginx-certs
configMap:
name: {{ .Release.Name }}-gen-certs
secret:
secretName: {{ .Release.Name }}-gen-certs
{{- else }}
- name: nginx-certs
secret:
Expand Down