-
Notifications
You must be signed in to change notification settings - Fork 89
Target plugin for IBMCloud (VSI) Instance Group #1056
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
Target plugin for IBMCloud (VSI) Instance Group #1056
Conversation
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.
Thanks for the contribution! The error handling doesn't need newlines and could use some rewording in places. Hopefully the comments I left guide you in the right direction.
Thanks @schmichael ! My really bad go code here is a but humbling -- "how did this ever build?" -- thanks for the suggestions. I changed out the identifiers (I was thinking too much like the terraform code) and tried to convert the exception messages similar to your examples with the previous. Down the road I would like to dedupe some of the code (most of the instanceID, apiKey -> NewVpcV1(...) stuff) but I wanted to share this sooner. |
@schmichael changes are made to address all your suggestions -- mostly wholesale accepting your suggestions (thanks) -- is there anything else we need to merge this? |
@schmichael while this awaits permission to begin workflows, I'm curious whether you prefer that I rebase locally and force-push, or merge main on top of this PR. Can you advise on your preferred workflow? |
Hello @chickenandpork |
thanks, @jeffmccollum .. I think I originally had I'll fix the description so that it's accurate for the next. [edit: updated description] Do you know if I should just keep merging updates to this PR until merged, or whether Hashicorp prefers rebase/squash/force-push ? I'd like to keep it as easy to merge as possible when the PR is approved. |
This comment was marked as resolved.
This comment was marked as resolved.
We'll squash-merge when we're done anyways. GitHub's review tools are a little easier to use if you don't squash while the review is ongoing. |
Looks like
Also could support for trusted profiles be added as an option? |
Strange -- I thought that was checked before, and it was green. taking a look.
Likely, but I'd want to follow this PR with that enhancement. My personal goal is to get this small effort into main so that others can see and leverage, then extend capabilities: minimum-ship before feature-ful. |
@jeffmccollum added, but I think the CI needs approval before checking. |
d03baab
to
9545da2
Compare
@jeffmccollum @schmichael rebased for the 10 commits between my PR and current builds. fixes https://github.com/hashicorp/nomad-autoscaler/actions/runs/14088268351/job/40258769936 The CI makes any outstanding PR have a recurring cost if we keep up (CI that used to pass can now fail if retried post-dependency update, especially because it enforced Would you folks be interested in some effort to accelerate the build process? |
9545da2
to
14ff184
Compare
Easier from the CLI to rebase on main and push. Churn caused due to being blocked on review while #1078 merged |
14ff184
to
ad8b588
Compare
d3cbcc3
to
ce83e63
Compare
Hi @chickenandpork! I triggered the test suit to run, but it seems we have a dependency conflict that needs fixing. |
Thanks for taking a look at this PR :)
Yeah, looks like #1111 updated a dependency. This has been happening since I created the PR a few months back. merged in main, should be happier. |
@chickenandpork The autoscaler is a special case of repo because it includes the codes for 3 internal repos for testing plugins, they are in |
The issue was a whitespace error in mitigating the merge against 04f95a9 -- a spacing issue in the
Thanks for the reminder -- I've worked with CI errors in those files on this PR :( . This merge was done through the GitHub UI, and didn't allow my usual shell tricks to catch my human error:
Sorry :( |
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.
Sorry for the delays! LGTM
Thanks @schmichael :) I don't seem to have authority to merge, it's possible that @Juanadelacuesta needs to "resolve" the conversation at #1056 (comment) ... maybe that will unblock merge ? [Edit] Wait, I see they thumbs-upped, I'd take that as resolved, and try to click the "resolve" button myself there. [Edit] @schmichael I see three other comments that were shown as outdated and I think I addressed in ceb5459 that I have "resolved":
I don't think this enables me to merge though. Maybe waiting on review from hashicorp/github-nomad-core |
Only maintainers do and @schmichael just forgot to push the button I think. It doesn't look like there were any open issues, so I've got this merged and it'll go out in the upcoming release. Thanks! |
|
This PR brings in a
target
plugin to scale an IBMCloud "instance group". Consider the following:(Terraform)
NOTE this will create an instance group with an ID such as
r006-faceb00c-feed-d00d-beef-123412341234
(nomad-autoscaler config
${NOMAD_TASK_DIR}/config.hcl
)(nomad-autoscaler config
${NOMAD_TASK_DIR}/policies/autoscale-group-policy.hcl
)I've tested this using a label as a metric, and witnessed the autoscaler exercising the target to scale an Instance Group up to 20, limited by the max I've set to 3, and then scaling back to 0.
This is currently in test at my employer but I'm contributing this to Hashicorp with supervisor permission. I'm willing to follow this with a contribution to nomad-autoscaler-demos. I can document the process in an article as well.