From 7dded2f7321ab4dc89b32923725de08c68dc76df Mon Sep 17 00:00:00 2001 From: Chi Wai Chan Date: Tue, 8 Oct 2024 10:45:27 +0800 Subject: [PATCH] Only support one component --- .../configs/charmed-openstack-upgrader_main.tfvars | 6 +++--- .../templates/github/jira_sync_config.yaml.tftpl | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/terraform-plans/configs/charmed-openstack-upgrader_main.tfvars b/terraform-plans/configs/charmed-openstack-upgrader_main.tfvars index 3c744f4..55337ab 100644 --- a/terraform-plans/configs/charmed-openstack-upgrader_main.tfvars +++ b/terraform-plans/configs/charmed-openstack-upgrader_main.tfvars @@ -5,7 +5,7 @@ templates = { gitignore = { source = "./templates/github/gitignore.tftpl" destination = ".gitignore" - vars = {} + vars = {} } codeowners = { source = "./templates/github/CODEOWNERS.tftpl" @@ -20,7 +20,7 @@ templates = { release = { source = "./templates/github/snap_release.yaml.tftpl" destination = ".github/workflows/release.yaml" - vars = { + vars = { runs_on = "[[ubuntu-22.04]]", } } @@ -28,7 +28,7 @@ templates = { source = "./templates/github/jira_sync_config.yaml.tftpl" destination = ".github/.jira_sync_config.yaml" vars = { - components = ["openstack-upgrader"], + component = "openstack-upgrader", epic_key = "SOLENG-172" } } diff --git a/terraform-plans/templates/github/jira_sync_config.yaml.tftpl b/terraform-plans/templates/github/jira_sync_config.yaml.tftpl index 603401d..0b0ec41 100644 --- a/terraform-plans/templates/github/jira_sync_config.yaml.tftpl +++ b/terraform-plans/templates/github/jira_sync_config.yaml.tftpl @@ -20,9 +20,7 @@ settings: # (Optional) Jira project components that should be attached to the created issue # Component names are case-sensitive components: -%{ for component in components ~} - ${component} -%{ endfor ~} # (Optional) (Default: false) Add a new comment in GitHub with a link to Jira created issue add_gh_comment: false