@@ -65,7 +65,6 @@ class DeployableDetails(abc.ABC):
65
65
66
66
has_db : bool = field (default = False , hash = False )
67
67
has_image : bool = field (default = None , hash = False ) # type: ignore[assignment]
68
- has_extra_env : bool = field (default = None , hash = False ) # type: ignore[assignment]
69
68
has_ingress : bool = field (default = True , hash = False )
70
69
has_workloads : bool = field (default = True , hash = False )
71
70
has_service_monitor : bool = field (default = None , hash = False ) # type: ignore[assignment]
@@ -80,8 +79,6 @@ def __post_init__(self):
80
79
self .helm_keys = (self .name ,)
81
80
if self .has_image is None :
82
81
self .has_image = self .has_workloads
83
- if self .has_extra_env is None :
84
- self .has_extra_env = self .has_workloads
85
82
if self .has_service_monitor is None :
86
83
self .has_service_monitor = self .has_workloads
87
84
if self .has_topology_spread_constraints is None :
@@ -275,22 +272,19 @@ def owns_manifest_named(self, manifest_name: str) -> bool:
275
272
helm_keys = ("initSecrets" ,),
276
273
has_image = False ,
277
274
has_ingress = False ,
278
- has_extra_env = False ,
279
275
has_service_monitor = False ,
280
276
has_topology_spread_constraints = False ,
281
277
is_shared_component = True ,
282
278
),
283
279
ComponentDetails (
284
280
name = "haproxy" ,
285
281
has_ingress = False ,
286
- has_extra_env = False ,
287
282
is_shared_component = True ,
288
283
skip_path_consistency_for_files = ("haproxy.cfg" , "429.http" , "path_map_file" , "path_map_file_get" ),
289
284
),
290
285
ComponentDetails (
291
286
name = "postgres" ,
292
287
has_ingress = False ,
293
- has_extra_env = False ,
294
288
has_storage = True ,
295
289
sidecars = (
296
290
SidecarDetails (
@@ -300,7 +294,6 @@ def owns_manifest_named(self, manifest_name: str) -> bool:
300
294
# No manifests of its own, so no labels to set
301
295
PropertyType .Labels : None ,
302
296
},
303
- has_extra_env = False ,
304
297
has_ingress = False ,
305
298
has_service_monitor = False ,
306
299
),
@@ -359,23 +352,23 @@ def owns_manifest_named(self, manifest_name: str) -> bool:
359
352
name = "synapse-redis" ,
360
353
helm_keys = ("synapse" , "redis" ),
361
354
has_ingress = False ,
362
- has_extra_env = False ,
363
355
has_service_monitor = False ,
364
356
has_topology_spread_constraints = False ,
365
357
),
366
358
SubComponentDetails (
367
359
name = "synapse-check-config-hook" ,
368
360
helm_keys = ("synapse" , "checkConfigHook" ),
369
361
helm_keys_overrides = {
370
- # has_extra_env but comes from synapse.extraEnv
362
+ # has_workloads but comes from synapse.extraEnv
371
363
PropertyType .Env : None ,
372
364
# has_workloads and so comes from synapse.image
373
365
PropertyType .Image : None ,
374
366
# has_workloads and so podSecurityContext but comes from synapse.podSecurityContext
375
367
PropertyType .PodSecurityContext : None ,
376
368
# has_workloads and so tolerations but comes from synapse.tolerations
377
369
PropertyType .Tolerations : None ,
378
- # has_workloads and so topologySpreadConstraints but comes from synapse.topologySpreadConstraints
370
+ # has_topology_spread_constraints and so topologySpreadConstraints
371
+ # but comes from synapse.topologySpreadConstraints
379
372
PropertyType .TopologySpreadConstraints : None ,
380
373
},
381
374
has_ingress = False ,
0 commit comments