feat(itim): Service config rendered as part of cluster config
ref: #247 #125 closes #69
This commit is contained in:
@ -144,6 +144,8 @@ class Cluster(TenancyObject):
|
||||
@property
|
||||
def rendered_config(self):
|
||||
|
||||
from itim.models.services import Service
|
||||
|
||||
rendered_config: dict = {}
|
||||
|
||||
if self.cluster_type.config:
|
||||
@ -152,6 +154,14 @@ class Cluster(TenancyObject):
|
||||
self.cluster_type.config
|
||||
)
|
||||
|
||||
|
||||
for service in Service.objects.filter(cluster = self.pk):
|
||||
|
||||
if service.config_variables:
|
||||
|
||||
rendered_config.update( service.config_variables )
|
||||
|
||||
|
||||
if self.config:
|
||||
|
||||
rendered_config.update(
|
||||
|
Reference in New Issue
Block a user