mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Fix Opencart template when using ingress (#15891)
Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
80041727d1
commit
425c828289
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: opencart
|
||||
version: 6.0.0
|
||||
version: 6.0.1
|
||||
appVersion: 3.0.3-2
|
||||
description: A free and open source e-commerce platform for online merchants. It provides a professional and reliable foundation for a successful online store.
|
||||
keywords:
|
||||
|
||||
@@ -23,6 +23,13 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "opencart.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
|
||||
@@ -5,7 +5,7 @@ metadata:
|
||||
name: {{ template "opencart.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "opencart.fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
chart: {{ template "opencart.chart" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
spec:
|
||||
@@ -17,7 +17,7 @@ spec:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ template "opencart.fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
chart: {{ template "opencart.chart" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
{{- if or .Values.podAnnotations .Values.metrics.enabled }}
|
||||
annotations:
|
||||
|
||||
@@ -5,10 +5,10 @@ metadata:
|
||||
name: {{ printf "%s-%s" .Release.Name "externaldb" }}
|
||||
labels:
|
||||
app: {{ printf "%s-%s" .Release.Name "externaldb" }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
chart: {{ template "opencart.chart" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
type: Opaque
|
||||
data:
|
||||
db-password: {{ default "" .Values.externalDatabase.password | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -5,7 +5,7 @@ metadata:
|
||||
name: {{ template "opencart.fullname" . }}-opencart
|
||||
labels:
|
||||
app: {{ template "opencart.fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
chart: {{ template "opencart.chart" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
spec:
|
||||
|
||||
@@ -4,7 +4,7 @@ metadata:
|
||||
name: {{ template "opencart.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "opencart.fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
chart: {{ template "opencart.chart" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
type: Opaque
|
||||
|
||||
@@ -4,7 +4,7 @@ metadata:
|
||||
name: {{ template "opencart.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "opencart.fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
chart: {{ template "opencart.chart" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
spec:
|
||||
|
||||
Reference in New Issue
Block a user