diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-01-24 23:29:13 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-01-24 23:29:13 +0100 |
commit | 1c9c9bba658057f6147276fba4f84e7db9117e70 (patch) | |
tree | 382a21300cb33cc0660baf150dc575725517467b /templates | |
parent | f636b1cc2bf7d391dc76956e906a6f497ef1b092 (diff) |
[ONAP-wide] Replace .Release.Name with common.release
ONAP is too big to be deployed using helm install so we need to
use a custom helm plugin helm deploy. This script deloys onap
component by component instead of deploying evrything at
once. Unfortunately this script also modifies the helm release by
appending component name to it.
As a result of this behavior our objects are called for example:
onap-mariadb-galera-mariadb-galera-0
instead of just being called onap-mariadb-galera-0.
This patch simplifies this naming convention by replacing all direct
usages of .Release.Name with common.release macro which strips the
component specific part from the release name.
Issue-ID: OOM-2275
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: I450057f5b4a10842f09665ecccc58e4ed727cd89
Diffstat (limited to 'templates')
-rw-r--r-- | templates/configmap.yaml | 8 | ||||
-rw-r--r-- | templates/deployment.yaml | 6 | ||||
-rw-r--r-- | templates/secret.yaml | 2 | ||||
-rw-r--r-- | templates/service.yaml | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/templates/configmap.yaml b/templates/configmap.yaml index 651bf8d..c9cfbef 100644 --- a/templates/configmap.yaml +++ b/templates/configmap.yaml @@ -21,7 +21,7 @@ metadata: labels: app: {{ include "common.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} + release: {{ include "common.release" . }} heritage: {{ .Release.Service }} data: {{ tpl (.Files.Glob "resources/config/log/filebeat/*").AsConfig . | indent 2 }} @@ -34,7 +34,7 @@ metadata: labels: app: {{ include "common.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} + release: {{ include "common.release" . }} heritage: {{ .Release.Service }} data: {{ if .Values.global.installSidecarSecurity }} @@ -51,7 +51,7 @@ metadata: labels: app: {{ include "common.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} + release: {{ include "common.release" . }} heritage: {{ .Release.Service }} type: Opaque data: @@ -66,7 +66,7 @@ metadata: labels: app: {{ include "common.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} + release: {{ include "common.release" . }} heritage: {{ .Release.Service }} type: Opaque data: diff --git a/templates/deployment.yaml b/templates/deployment.yaml index ee21140..b842261 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -21,7 +21,7 @@ metadata: labels: app: {{ include "common.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} + release: {{ include "common.release" . }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} @@ -29,8 +29,8 @@ spec: metadata: labels: app: {{ include "common.name" . }} - release: {{ .Release.Name }} - name: {{ .Release.Name }} + release: {{ include "common.release" . }} + name: {{ include "common.release" . }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: diff --git a/templates/secret.yaml b/templates/secret.yaml index f01f11d..dd8be62 100644 --- a/templates/secret.yaml +++ b/templates/secret.yaml @@ -20,7 +20,7 @@ metadata: labels: app: {{ include "common.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} + release: {{ include "common.release" . }} heritage: {{ .Release.Service }} type: Opaque data: diff --git a/templates/service.yaml b/templates/service.yaml index 28df229..5ee9668 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -20,7 +20,7 @@ metadata: labels: app: {{ include "common.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} + release: {{ include "common.release" . }} heritage: {{ .Release.Service }} spec: ports: |