mirror of
https://github.com/bitnami/charts.git
synced 2026-03-05 06:47:25 +08:00
* Migrate phpmyadmin ingress to networking.k8s.io/v1beta1 Signed-off-by: Marco Kilchhofer <marco.kilchhofer@bedag.ch>
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
{{- if .Values.ingress.enabled -}}
|
|
apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }}
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ template "phpmyadmin.fullname" . }}
|
|
labels:
|
|
app: {{ template "phpmyadmin.name" . }}
|
|
chart: {{ template "phpmyadmin.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
annotations:
|
|
{{- if .Values.ingress.certManager }}
|
|
kubernetes.io/tls-acme: "true"
|
|
{{- end }}
|
|
{{- if .Values.ingress.rewriteTarget }}
|
|
ingress.kubernetes.io/rewrite-target: /
|
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
|
{{- end }}
|
|
{{- if .Values.ingress.annotations }}
|
|
{{- include "phpmyadmin.tplValue" (dict "value" .Values.ingress.annotations "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
rules:
|
|
{{- range .Values.ingress.hosts }}
|
|
- host: {{ .name }}
|
|
http:
|
|
paths:
|
|
- path: {{ default "/" .path }}
|
|
backend:
|
|
serviceName: {{ template "phpmyadmin.fullname" $ }}
|
|
servicePort: http
|
|
{{- end }}
|
|
tls:
|
|
{{- range .Values.ingress.hosts }}
|
|
{{- if .tls }}
|
|
- hosts:
|
|
{{- if .tlsHosts }}
|
|
{{- range $host := .tlsHosts }}
|
|
- {{ $host }}
|
|
{{- end }}
|
|
{{- else }}
|
|
- {{ .name }}
|
|
{{- end }}
|
|
secretName: {{ .tlsSecret }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|