mirror of
https://github.com/bitnami/charts.git
synced 2026-03-01 15:07:34 +08:00
[bitnami/mediawiki] Fix Mediawiki host when using ingress (#8239)
* [bitnami/mediawiki] Fix Mediawiki host when using ingress * Apply suggestion Co-authored-by: Miguel Ángel Cabrera Miñagorri <devgorri@gmail.com> * Bump patch version Co-authored-by: Miguel Ángel Cabrera Miñagorri <devgorri@gmail.com>
This commit is contained in:
@@ -32,4 +32,4 @@ name: mediawiki
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-mediawiki
|
||||
- https://www.mediawiki.org/
|
||||
version: 12.4.3
|
||||
version: 12.4.4
|
||||
|
||||
@@ -15,9 +15,13 @@ Note, returns 127.0.0.1 if using ClusterIP.
|
||||
{{/*
|
||||
Gets the host to be used for this application.
|
||||
If not using ClusterIP, or if a host or LoadBalancerIP is not defined, the value will be empty.
|
||||
When using Ingress, it will be set to the Ingress hostname.
|
||||
*/}}
|
||||
{{- define "mediawiki.host" -}}
|
||||
{{- $host := index .Values (printf "%sHost" .Chart.Name) | default "" -}}
|
||||
{{- if .Values.ingress.enabled }}
|
||||
{{- $host := .Values.ingress.hostname | default "" -}}
|
||||
{{- end -}}
|
||||
{{- default (include "mediawiki.serviceIP" .) $host -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user