From e72303a94bcf3a27dcdaeb1055d2448329b10ca8 Mon Sep 17 00:00:00 2001 From: Luca Prete Date: Tue, 17 Dec 2024 17:26:02 +0100 Subject: [PATCH] [FAST] Remove unused stage 1 CICD variables (#2774) --- fast/stages/1-resman/README.md | 4 ++-- fast/stages/1-resman/variables-stages.tf | 14 ++++++-------- tests/fast/stages/s1_resman/simple.yaml | 1 - 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/fast/stages/1-resman/README.md b/fast/stages/1-resman/README.md index c77e56f7a2..339b951700 100644 --- a/fast/stages/1-resman/README.md +++ b/fast/stages/1-resman/README.md @@ -273,8 +273,8 @@ terraform apply | [prefix](variables-fast.tf#L147) | Prefix used for resources that need unique names. Use 9 characters or less. | string | ✓ | | 0-bootstrap | | [custom_roles](variables-fast.tf#L53) | Custom roles defined at the org level, in key => id format. | object({…}) | | null | 0-bootstrap | | [factories_config](variables.tf#L20) | Configuration for the resource factories or external data. | object({…}) | | {} | | -| [fast_stage_2](variables-stages.tf#L17) | FAST stages 2 configurations. | object({…}) | | {} | | -| [fast_stage_3](variables-stages.tf#L97) | FAST stages 3 configurations. | map(object({…})) | | {} | | +| [fast_stage_2](variables-stages.tf#L17) | FAST stages 2 configurations. | object({…}) | | {} | | +| [fast_stage_3](variables-stages.tf#L95) | FAST stages 3 configurations. | map(object({…})) | | {} | | | [groups](variables-fast.tf#L88) | Group names or IAM-format principals to grant organization-level permissions. If just the name is provided, the 'group:' principal and organization domain are interpolated. | object({…}) | | {} | 0-bootstrap | | [locations](variables-fast.tf#L103) | Optional locations for GCS, BigQuery, and logging buckets created here. | object({…}) | | {} | 0-bootstrap | | [outputs_location](variables.tf#L31) | Enable writing provider, tfvars and CI/CD workflow files to local filesystem. Leave null to disable. | string | | null | | diff --git a/fast/stages/1-resman/variables-stages.tf b/fast/stages/1-resman/variables-stages.tf index d3d244a8ef..c46bdb9776 100644 --- a/fast/stages/1-resman/variables-stages.tf +++ b/fast/stages/1-resman/variables-stages.tf @@ -23,10 +23,9 @@ variable "fast_stage_2" { cicd_config = optional(object({ identity_provider = string repository = object({ - name = string - branch = optional(string) - parent_id = optional(string) - type = optional(string, "github") + name = string + branch = optional(string) + type = optional(string, "github") }) })) folder_config = optional(object({ @@ -42,10 +41,9 @@ variable "fast_stage_2" { cicd_config = optional(object({ identity_provider = string repository = object({ - name = string - branch = optional(string) - parent_id = optional(string) - type = optional(string, "github") + name = string + branch = optional(string) + type = optional(string, "github") }) })) }), {}) diff --git a/tests/fast/stages/s1_resman/simple.yaml b/tests/fast/stages/s1_resman/simple.yaml index 0a4b782fad..0f7d2058d3 100644 --- a/tests/fast/stages/s1_resman/simple.yaml +++ b/tests/fast/stages/s1_resman/simple.yaml @@ -1802,7 +1802,6 @@ outputs: repository: branch: main name: test/00-networking - parent_id: null type: github security: provider: projects/1234567890/locations/global/workloadIdentityPools/ldj-bootstrap/providers/ldj-bootstrap-gitlab-ludomagno