fix(helm): fix existingName does not take effect
when ssl.enabled and ssl.useExisting are true, ssl.existingName does not take effect
This commit is contained in:
parent
a3794c1de0
commit
a66a4ffa49
|
@ -32,3 +32,5 @@
|
||||||
the encoding (to JSON) of the event will fail.
|
the encoding (to JSON) of the event will fail.
|
||||||
|
|
||||||
- Fix bad HTTP response status code for `/gateways` API, when Gateway name is unknown, it should return `404` instead of `400` [#9268](https://github.com/emqx/emqx/pull/9268).
|
- Fix bad HTTP response status code for `/gateways` API, when Gateway name is unknown, it should return `404` instead of `400` [#9268](https://github.com/emqx/emqx/pull/9268).
|
||||||
|
|
||||||
|
- Fix `ssl.existingName` option of helm chart not working [#9307](https://github.com/emqx/emqx/issues/9307).
|
||||||
|
|
|
@ -30,3 +30,5 @@
|
||||||
`$events/message_dropped`, 如果消息事件是共享订阅产生的,在编码(到 JSON 格式)过程中会失败。
|
`$events/message_dropped`, 如果消息事件是共享订阅产生的,在编码(到 JSON 格式)过程中会失败。
|
||||||
|
|
||||||
- 修复 HTTP API `/gateways` 的返回状态码,未知 Gateway 名字应返回 `404` 而不是 `400` [#9268](https://github.com/emqx/emqx/pull/9268)。
|
- 修复 HTTP API `/gateways` 的返回状态码,未知 Gateway 名字应返回 `404` 而不是 `400` [#9268](https://github.com/emqx/emqx/pull/9268)。
|
||||||
|
|
||||||
|
- 修复 helm chart 的 `ssl.existingName` 选项不起作用 [#9307](https://github.com/emqx/emqx/issues/9307)。
|
||||||
|
|
|
@ -56,7 +56,7 @@ spec:
|
||||||
{{- if .Values.ssl.enabled }}
|
{{- if .Values.ssl.enabled }}
|
||||||
- name: ssl-cert
|
- name: ssl-cert
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ include "emqx.fullname" . }}-tls
|
secretName: {{ include "emqx.ssl.secretName" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not .Values.persistence.enabled }}
|
{{- if not .Values.persistence.enabled }}
|
||||||
- name: emqx-data
|
- name: emqx-data
|
||||||
|
|
|
@ -30,3 +30,15 @@ Create chart name and version as used by the chart label.
|
||||||
{{- define "emqx.chart" -}}
|
{{- define "emqx.chart" -}}
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Get ssl secret name .
|
||||||
|
*/}}
|
||||||
|
{{- define "emqx.ssl.secretName" -}}
|
||||||
|
{{- if and .Values.ssl.useExisting .Values.ssl.existingName -}}
|
||||||
|
{{ .Values.ssl.existingName }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ include "emqx.fullname" . }}-tls
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
|
@ -56,7 +56,7 @@ spec:
|
||||||
{{- if .Values.ssl.enabled }}
|
{{- if .Values.ssl.enabled }}
|
||||||
- name: ssl-cert
|
- name: ssl-cert
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ include "emqx.fullname" . }}-tls
|
secretName: {{ include "emqx.ssl.secretName" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not .Values.persistence.enabled }}
|
{{- if not .Values.persistence.enabled }}
|
||||||
- name: emqx-data
|
- name: emqx-data
|
||||||
|
|
|
@ -30,3 +30,15 @@ Create chart name and version as used by the chart label.
|
||||||
{{- define "emqx.chart" -}}
|
{{- define "emqx.chart" -}}
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Get ssl secret name .
|
||||||
|
*/}}
|
||||||
|
{{- define "emqx.ssl.secretName" -}}
|
||||||
|
{{- if and .Values.ssl.useExisting .Values.ssl.existingName -}}
|
||||||
|
{{ .Values.ssl.existingName }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ include "emqx.fullname" . }}-tls
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in New Issue