Revert "[stable/nats] Standardize 'fullname' and 'name' macros (#15439)" (#15596)

This reverts commit f526decd27.

Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
This commit is contained in:
Carlos Rodríguez Hernández
2019-07-17 06:59:24 -07:00
committed by Kubernetes Prow Robot
parent 06c808f232
commit f974887e6d
5 changed files with 1 additions and 27 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: nats
version: 3.0.3
version: 3.0.4
appVersion: 2.0.2
description: An open-source, cloud-native messaging system
keywords:
-2
View File
@@ -54,8 +54,6 @@ The following table lists the configurable parameters of the NATS chart and thei
| `image.tag` | NATS 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 nats.fullname template with a string (will prepend the release name) | `nil` |
| `fullnameOverride` | String to fully override nats.fullname template with a string | `nil` |
| `auth.enabled` | Switch to enable/disable client authentication | `true` |
| `auth.user` | Client authentication user | `nats_cluster` |
| `auth.password` | Client authentication password | `random alhpanumeric string (10)` |
-8
View File
@@ -12,17 +12,9 @@ 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 "nats.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 -}}
{{- define "nats.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
-8
View File
@@ -26,14 +26,6 @@ image:
# pullSecrets:
# - name: myRegistryKeySecretName
## String to partially override nats.fullname template (will maintain the release name)
##
# nameOverride:
## String to fully override nats.fullname template
##
# fullnameOverride:
## NATS replicas
replicaCount: 3
-8
View File
@@ -26,14 +26,6 @@ image:
# pullSecrets:
# - name: myRegistryKeySecretName
## String to partially override nats.fullname template (will maintain the release name)
##
# nameOverride:
## String to fully override nats.fullname template
##
# fullnameOverride:
## NATS replicas
replicaCount: 1