Fix ro-k8s charm to include commonkey 56/10056/1
authorDavid Garcia <david.garcia@canonical.com>
Mon, 30 Nov 2020 15:29:54 +0000 (16:29 +0100)
committerDavid Garcia <david.garcia@canonical.com>
Mon, 30 Nov 2020 15:29:54 +0000 (16:29 +0100)
Change-Id: I869b09709585c0cd1cbdd067d6837c94348872b6
Signed-off-by: David Garcia <david.garcia@canonical.com>
installers/charm/ro-k8s/config.yaml
installers/charm/ro-k8s/reactive/ro.py

index 31eaca8..e93cc49 100755 (executable)
@@ -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
index 094812f..aef1bea 100644 (file)
@@ -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