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

This reverts commit 74281ac7eb.
Implement #15434 bumping a major version after #15608
Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
This commit is contained in:
Carlos Rodríguez Hernández
2019-07-18 07:34:59 -07:00
committed by Kubernetes Prow Robot
parent a661168468
commit e12e984703
4 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: orangehrm
version: 4.4.6
version: 5.0.0
appVersion: 4.3.2-0
description: OrangeHRM is a free HR management system that offers a wealth of modules
to suit the needs of your business.
+2
View File
@@ -56,6 +56,8 @@ The following table lists the configurable parameters of the OrangeHRM chart and
| `image.tag` | OrangeHRM 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 orangehrm.fullname template with a string (will prepend the release name) | `nil` |
| `fullnameOverride` | String to fully override orangehrm.fullname template with a string | `nil` |
| `orangehrmUsername` | User of the application | `user` |
| `orangehrmPassword` | Application password | _random 10 character long alphanumeric string_ |
| `smtpHost` | SMTP host | `nil` |
+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 "orangehrm.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 chart name and version as used by the chart label.
+8
View File
@@ -26,6 +26,14 @@ image:
# pullSecrets:
# - myRegistryKeySecretName
## String to partially override orangehrm.fullname template (will maintain the release name)
##
# nameOverride:
## String to fully override orangehrm.fullname template
##
# fullnameOverride:
## User of the application
## ref: https://github.com/bitnami/bitnami-docker-orangehrm#configuration
##