mirror of
https://github.com/helm/charts.git
synced 2026-08-22 05:48:09 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
d0a110b68a
commit
e554cfb6da
@@ -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:
|
||||
|
||||
@@ -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` |
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user