Fix bug 1620 - adding option to LCM charm to configure Helm CA certificates 95/11095/2
authorsousaedu <eduardo.sousa@canonical.com>
Fri, 30 Jul 2021 12:40:47 +0000 (14:40 +0200)
committersousaedu <eduardo.sousa@canonical.com>
Fri, 30 Jul 2021 14:58:06 +0000 (16:58 +0200)
Change-Id: I90f2f9ab1379deb45240a2d94e123cbbcd4ecf42
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
installers/charm/lcm/config.yaml
installers/charm/lcm/src/charm.py

index 78efe2f..dcebce8 100644 (file)
@@ -270,3 +270,7 @@ options:
     description: Stable repository URL for Helm charts
     type: string
     default: https://charts.helm.sh/stable
+  vca_helm_ca_certs:
+    description: CA certificates to validate access to Helm repository
+    type: string
+    default: ""
index 9b025c9..fecd1b3 100755 (executable)
@@ -109,6 +109,7 @@ class ConfigModel(ModelValidator):
     vca_model_config_transmit_vendor_metrics: Optional[bool]
     vca_model_config_update_status_hook_interval: Optional[str]
     vca_stablerepourl: Optional[str]
+    vca_helm_ca_certs: Optional[str]
 
     @validator("log_level")
     def validate_log_level(cls, v):
@@ -193,6 +194,7 @@ class LcmCharm(CharmedOsmBase):
                 "OSMLCM_STORAGE_URI": config.mongodb_uri
                 or self.mongodb_client.connection_string,
                 "OSMLCM_VCA_STABLEREPOURL": config.vca_stablerepourl,
+                "OSMLCM_VCA_HELM_CA_CERTS": config.vca_helm_ca_certs,
             }
         )
         if config.vca_host: