feat: update GitHub ARC Runners configuration and remove unused resources #2153
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
This pull request refactors the Github ARC Runners Terraform module to simplify configuration, reduce duplication, and improve maintainability. It removes several variables and resource files, consolidates configuration logic, and standardizes naming conventions. The changes also introduce new variable handling for runner memory resources and update how dependencies and substitutions are managed in the FluxCD manifests.
Key changes:
Simplification and Consolidation
deploy_name,namespace, and multiple runner configuration settings fromvars.tfand replaced them with local variables and a singlerunner_resource_memoryvariable. This reduces complexity and potential for misconfiguration. [1] [2]patch.yaml,serviceaccount.yaml,role.yaml,rolebinding.yaml) and their associated Terraform resources, consolidating configuration into the mainhelm_installYAML. [1] [2]Improved Naming and Variable Handling
local.deploy_namethroughout instead of a variable, and hardcoded the namespace toarc-runnersin the relevant FluxCD manifests. [1] [2]FluxCD and AWS Integration
aws_caller_identitydata source and included its ID as a substitution in the FluxCD manifest, enabling dynamic AWS account integration for the runners. [1] [2]dependsOnreferences in the FluxCD manifests to use standardized names, ensuring correct deployment order.Dependency Management
versions.tfto support the new AWS data source usage.These changes streamline the deployment and management of Github ARC Runners, making the module easier to use and maintain.
Checklist before requesting a review
test/integrationfolder to apply my changes in QA. Read the guide on adding environment variables in QAIs it a new release?
release:(major|minor|patch), following semantic versioning in this guide ornoreleaseif there is no changes to the Terraform code