[stable/opencart] Implement again "Standardize 'fullname' and 'name' macros" (#15647)

This reverts commit 8cddf1d0ba.
Implement #15435 bumping a major version after #15601
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
This commit is contained in:
Carlos Rodríguez Hernández
2019-07-18 06:34:53 -07:00
committed by Kubernetes Prow Robot
parent d0a110b68a
commit e554cfb6da
4 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: opencart
version: 4.5.5
version: 5.0.0
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:
+2
View File
@@ -56,6 +56,8 @@ The following table lists the configurable parameters of the OpenCart chart and
| `image.tag` | OpenCart Image tag | `{TAG_NAME}` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `nameOverride` | String to partially override opencart.fullname template with a string (will prepend the release name) | `nil` |
| `fullnameOverride` | String to fully override opencart.fullname template with a string | `nil` |
| `opencartHost` | OpenCart host to create application URLs | `nil` |
| `service.type` | Kubernetes Service type | `LoadBalancer` |
| `service.port` | Service HTTP port | `80` |
+8
View File
@@ -11,9 +11,17 @@ 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).
*/}}
{{- define "opencart.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
+8
View File
@@ -26,6 +26,14 @@ image:
# pullSecrets:
# - myRegistryKeySecretName
## String to partially override opencart.fullname template (will maintain the release name)
##
# nameOverride:
## String to fully override opencart.fullname template
##
# fullnameOverride:
## OpenCart host to create application URLs
## ref: https://github.com/bitnami/bitnami-docker-opencart#configuration
##