From ae58dabd3561cb3628106b7baba06e58cf35262c Mon Sep 17 00:00:00 2001 From: David Garcia Date: Mon, 30 Nov 2020 16:29:54 +0100 Subject: [PATCH] Fix ro-k8s charm to include commonkey Change-Id: I869b09709585c0cd1cbdd067d6837c94348872b6 Signed-off-by: David Garcia --- installers/charm/ro-k8s/config.yaml | 4 ++++ installers/charm/ro-k8s/reactive/ro.py | 1 + 2 files changed, 5 insertions(+) diff --git a/installers/charm/ro-k8s/config.yaml b/installers/charm/ro-k8s/config.yaml index 31eaca8a..e93cc495 100755 --- a/installers/charm/ro-k8s/config.yaml +++ b/installers/charm/ro-k8s/config.yaml @@ -40,3 +40,7 @@ options: description: Docker repository password type: string default: "" + database_commonkey: + description: Database common key + type: string + default: osm \ No newline at end of file diff --git a/installers/charm/ro-k8s/reactive/ro.py b/installers/charm/ro-k8s/reactive/ro.py index 094812fb..aef1bea7 100644 --- a/installers/charm/ro-k8s/reactive/ro.py +++ b/installers/charm/ro-k8s/reactive/ro.py @@ -207,6 +207,7 @@ def make_pod_spec_new_ro(kafka_host, mongodb_uri): { "OSMRO_DATABASE_URI": mongodb_uri, "OSMRO_MESSAGE_HOST": kafka_host, + "OSMRO_DATABASE_COMMONKEY": cfg.get("database_commonkey"), } ) return spec -- 2.25.1