-
Notifications
You must be signed in to change notification settings - Fork 712
feat: Add feature to enable dynamic ec2 config via workflow labels #5003
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
Open
edersonbrilhante
wants to merge
28
commits into
github-aws-runners:main
Choose a base branch
from
edersonbrilhante:feat-ec2-dynamic-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,047
−39
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
5c23012
feat: Add feature to enable dynamic instance types via workflow labels
npalm 6be3726
docs: auto update terraform docs
4c1f2fa
feat: allow to use dynamic instance type in multiple events
edersonbrilhante e485239
style: fix format
edersonbrilhante 2c2ec39
fix: add dynamic labels as runner labels
edersonbrilhante 886412f
test: add tests for dynamic labels
edersonbrilhante f7fc866
fix: wire enable_dynamic_ec2_config
edersonbrilhante 5f56ef9
fix: fix runner owner logic
edersonbrilhante 0c026d7
chore: decrease log level for some logs
edersonbrilhante e93e296
style: fix format issues
edersonbrilhante 079ecee
feat: add support for all fields in FleetLaunchTemplateOverridesRequest
edersonbrilhante d478870
style: fix formatting issues
edersonbrilhante 6561720
fix: convert instanceTypes to constant
edersonbrilhante 6c94342
test: fix test cases
edersonbrilhante 1460582
fix: fix imports
edersonbrilhante 3c4a197
docs: update function docs for parseEc2OverrideConfig
edersonbrilhante c65665f
feat: allow use any dynamic label with prefix ghr-
edersonbrilhante f808607
style: fix formatting
edersonbrilhante bdb86f4
docs: auto update terraform docs
github-actions[bot] e02c418
fix: fix wrong variable
edersonbrilhante ce82eb1
fix: replace old envvar for new envvar
edersonbrilhante 5742c07
style: fix tflint
edersonbrilhante e810cec
fix: fix envvar in dispatcher
edersonbrilhante b49cd27
test: remove wrong tests
edersonbrilhante 9192bd0
docs: add documentation and mask as experimental
edersonbrilhante b8a3c42
docs: update variable description
edersonbrilhante e528373
docs: auto update terraform docs
github-actions[bot] e67a37e
docs: auto update terraform docs
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these tests work with all good values, but because we are in the user space, what about bad values and their effects? Is it maybe worth extending the tests to not trust the user data? I am not sure how the behaviour will be if someone makes a mistake, does it take the whole batch/process out?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An example would be m5.large, could be m5,large. How will this change behaviour?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stuartp44
The payload will be sent to aws, and aws will validate it. Example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stuartp44 can you review again?