Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(main): remove declaration of unused variables for docker-autoscaler setup #1223

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ikarlashov
Copy link

Description

This PR removes the declaration of some settings of var.runner_worker_docker_autoscaler_asg that are never used in the terraform manifests of the module.

Migrations required

No

Verification

Remove:

  • max_growth_rate
  • override_instance_types
  • profile_name

from var.runner_worker_docker_autoscaler_asg declaration in variables.tf

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Hey @ikarlashov! 👋

Thank you for your contribution to the project. Please refer to the contribution rules for a quick overview of the process.

Make sure that this PR clearly explains:

  • the problem being solved
  • the best way a reviewer and you can test your changes

With submitting this PR you confirm that you hold the rights of the code added and agree that it will published under this LICENSE.

The following ChatOps commands are supported:

  • /help: notifies a maintainer to help you out

Simply add a comment with the command in the first line. If you need to pass more information, separate it with a blank line from the command.

This message was generated automatically. You are welcome to improve it.

@ikarlashov ikarlashov changed the title Remove declaration of unused variables for docker-autoscaler setup chore(clean-up): remove declaration of unused variables for docker-autoscaler setup Jan 9, 2025
@ikarlashov ikarlashov changed the title chore(clean-up): remove declaration of unused variables for docker-autoscaler setup chore(main): remove declaration of unused variables for docker-autoscaler setup Jan 9, 2025
Copy link
Collaborator

@kayman-mk kayman-mk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot. Thanks for keeping the help texts clean.

Comment on lines -672 to -682
max_growth_rate = The maximum number of machines that can be added to the runner in parallel.
on_demand_base_capacity = Absolute minimum amount of desired capacity that must be fulfilled by on-demand instances.
on_demand_percentage_above_base_capacity = Percentage split between on-demand and Spot instances above the base on-demand capacity.
override_instance_types = List to override the instance type in the Launch Template. Allow to spread spot instances on several types, to reduce interruptions
profile_name = profile_name = Name of the IAM profile to attach to the Runner Workers.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: as long as we do not change the type definition below, we mustn't remove the description.

suggestion: change the description to (deprecated, not in use) # TODO remove in the upcoming major release or similar.

@kayman-mk kayman-mk force-pushed the del_unused_vars_docker_autoscaler branch from b03e8db to f9d3349 Compare February 6, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants