aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/dmaap/components/dmaap-dr-prov/templates
diff options
context:
space:
mode:
authorMahmoud Abdelhamid <mahmoud.abdelhamid@orange.com>2021-09-15 20:27:19 +0200
committerKrzysztof Opasiak <k.opasiak@samsung.com>2021-10-06 16:42:13 +0000
commit7fc530c6504411c2051fc774bcec265673f2fa54 (patch)
tree48cb71813731d00acd90edc2180c20020efcc034 /kubernetes/dmaap/components/dmaap-dr-prov/templates
parenta001a61bdd6430027b39281f9d79366e837c7494 (diff)
[DMAAP] Use the common mariadb-galera instance
Have following updates for DMAAP-DR-PROV: - Add section under .Values.global for shared mariadb instance default info with a condition to instantiate local instance - Add section under .Values for mariadb-init and mariadb-galera projects - Add condition under requirments.yaml to install local mariadb instance - Update deployment with DB host parameter and reflect it into resource file (using the templates defined under templates/_mariadb.tpl) Issue-ID: OOM-2774 Signed-off-by: Mahmoud Abdelhamid <mahmoud.abdelhamid@orange.com> Change-Id: I8a8e2c179710680282f4ad686dc44e75356a1b81
Diffstat (limited to 'kubernetes/dmaap/components/dmaap-dr-prov/templates')
-rw-r--r--kubernetes/dmaap/components/dmaap-dr-prov/templates/deployment.yaml8
1 files changed, 4 insertions, 4 deletions
diff --git a/kubernetes/dmaap/components/dmaap-dr-prov/templates/deployment.yaml b/kubernetes/dmaap/components/dmaap-dr-prov/templates/deployment.yaml
index 61678961cc..a3051eee5d 100644
--- a/kubernetes/dmaap/components/dmaap-dr-prov/templates/deployment.yaml
+++ b/kubernetes/dmaap/components/dmaap-dr-prov/templates/deployment.yaml
@@ -42,8 +42,8 @@ spec:
command:
- /app/ready.py
args:
- - --container-name
- - {{ .Values.config.dmaapDrDb.mariadbContName }}
+ - --job-name
+ - {{ include "common.release" . }}-dmaap-dr-mariadb-init-config-job
env:
- name: NAMESPACE
valueFrom:
@@ -81,9 +81,9 @@ spec:
periodSeconds: {{ .Values.readiness.periodSeconds }}
env:
- name: DB_USERNAME
- {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmaap-dr-db-user-secret" "key" "login") | indent 12 }}
+ {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmaap-dr-db-user-credentials" "key" "login") | indent 12 }}
- name: DB_PASSWORD
- {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmaap-dr-db-user-secret" "key" "password") | indent 12 }}
+ {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmaap-dr-db-user-credentials" "key" "password") | indent 12 }}
volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
- mountPath: /etc/localtime
name: localtime