From 676e0ebfb4554ad983cb04719c899d77ce2284c7 Mon Sep 17 00:00:00 2001 From: przemkalit Date: Thu, 28 Nov 2024 16:00:29 +0100 Subject: [PATCH] fix: missing limits workflows (#37) Co-authored-by: Przemyslaw Kalitowski --- .../fragments/filetree_create_missing_limits_workflows.yml | 4 ++++ .../templates/controller_workflow_job_templates.j2 | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 changelogs/fragments/filetree_create_missing_limits_workflows.yml diff --git a/changelogs/fragments/filetree_create_missing_limits_workflows.yml b/changelogs/fragments/filetree_create_missing_limits_workflows.yml new file mode 100644 index 00000000..517f08e7 --- /dev/null +++ b/changelogs/fragments/filetree_create_missing_limits_workflows.yml @@ -0,0 +1,4 @@ +--- +bugfixes: + - filetree_create export missing limits settings of workflows +... diff --git a/roles/filetree_create/templates/controller_workflow_job_templates.j2 b/roles/filetree_create/templates/controller_workflow_job_templates.j2 index 1273b7d3..bd3fc263 100644 --- a/roles/filetree_create/templates/controller_workflow_job_templates.j2 +++ b/roles/filetree_create/templates/controller_workflow_job_templates.j2 @@ -63,6 +63,12 @@ controller_workflows: scm_branch: "{{ template_overrides_resources.workflow_job_template[current_workflow_job_templates_asset_value.name].scm_branch | default(template_overrides_global.workflow_template.scm_branch) | default(current_workflow_job_templates_asset_value.scm_branch) }}" + limit: "{{ template_overrides_resources.workflow_job_template[current_workflow_job_templates_asset_value.name].limit + | default(template_overrides_global.workflow_job_template.limit) + | default(current_workflow_job_templates_asset_value.limit) }}" + ask_limit_on_launch: {{ template_overrides_resources.workflow_job_template[current_workflow_job_templates_asset_value.name].ask_limit_on_launch + | default(template_overrides_global.workflow_job_template.ask_limit_on_launch) + | default(current_workflow_job_templates_asset_value.ask_limit_on_launch | bool | lower) }} webhook_service: "{{ template_overrides_resources.workflow_job_template[current_workflow_job_templates_asset_value.name].description | default(template_overrides_global.workflow_template.webhook_service) | default(current_workflow_job_templates_asset_value.webhook_service) }}"