@@ -568,6 +568,7 @@ async def create_vela_config(
568568 text = True ,
569569 )
570570 await _initialize_autoscaler_overlay_endpoints (namespace )
571+ await set_initial_password (branch_id , parameters .database_password , database_admin_password , timeout = 240 )
571572 except subprocess .CalledProcessError as e :
572573 logger .exception (f"Failed to create deployment: { e .stderr } " )
573574 release_name = _release_name ()
@@ -1240,6 +1241,7 @@ async def set_initial_password(branch_id: Identifier, password: str, admin_passw
12401241 username = DEFAULT_DB_USER ,
12411242 admin_password = admin_password ,
12421243 new_password = password ,
1244+ ssl = "allow" ,
12431245 )
12441246
12451247
@@ -1286,19 +1288,16 @@ async def deploy_branch_environment(
12861288 ref = ref ,
12871289 ),
12881290 create_vela_grafana_obj (organization_id , branch_id , credential ),
1289- set_initial_password (branch_id , parameters .database_password , database_admin_password , timeout = 240 ),
12901291 return_exceptions = True ,
12911292 )
12921293
1293- config_result , endpoint_result , grafana_result , set_password_result = results
1294+ config_result , endpoint_result , grafana_result = results
12941295 if isinstance (grafana_result , Exception ):
12951296 logger .error (
12961297 "Grafana object creation failed for organization_id=%s branch_id=%s" ,
12971298 organization_id ,
12981299 branch_id ,
12991300 exc_info = grafana_result ,
13001301 )
1301- if exceptions := [
1302- result for result in (config_result , endpoint_result , set_password_result ) if isinstance (result , Exception )
1303- ]:
1302+ if exceptions := [result for result in (config_result , endpoint_result ) if isinstance (result , Exception )]:
13041303 raise VelaDeployError ("Failed operations during vela deployment" , exceptions )
0 commit comments