Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.

Commit 8df9f36

Browse files
committed
[elasticsearch] add subject dn to cert alternative names
This also seem to be required to Logstash can reuse the Elasticsearch certificates to connect to Elasticsearch Service. Follow-up of elastic#1624 Required for elastic#1623
1 parent 930e902 commit 8df9f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch/templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
3131
Generate certificates
3232
*/}}
3333
{{- define "elasticsearch.gen-certs" -}}
34-
{{- $altNames := list ( printf "%s.%s" (include "elasticsearch.masterService" .) .Release.Namespace ) ( printf "%s.%s.svc" (include "elasticsearch.masterService" .) .Release.Namespace ) -}}
34+
{{- $altNames := list ( include "elasticsearch.masterService" . ) ( printf "%s.%s" (include "elasticsearch.masterService" .) .Release.Namespace ) ( printf "%s.%s.svc" (include "elasticsearch.masterService" .) .Release.Namespace ) -}}
3535
{{- $ca := genCA "elasticsearch-ca" 365 -}}
3636
{{- $cert := genSignedCert ( include "elasticsearch.masterService" . ) nil $altNames 365 $ca -}}
3737
tls.crt: {{ $cert.Cert | toString | b64enc }}

0 commit comments

Comments
 (0)