Fix 1539: Helm v2.17.0 and set default value for stablerepourl
[osm/devops.git] / installers / charm / lcm / src / charm.py
index 4e0b4be..9b025c9 100755 (executable)
@@ -108,6 +108,7 @@ class ConfigModel(ModelValidator):
     vca_model_config_test_mode: Optional[bool]
     vca_model_config_transmit_vendor_metrics: Optional[bool]
     vca_model_config_update_status_hook_interval: Optional[str]
+    vca_stablerepourl: Optional[str]
 
     @validator("log_level")
     def validate_log_level(cls, v):
@@ -191,6 +192,7 @@ class LcmCharm(CharmedOsmBase):
                 "OSMLCM_STORAGE_COLLECTION": "files",
                 "OSMLCM_STORAGE_URI": config.mongodb_uri
                 or self.mongodb_client.connection_string,
+                "OSMLCM_VCA_STABLEREPOURL": config.vca_stablerepourl,
             }
         )
         if config.vca_host: