-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Implemented RetryJoin on AzureRM #2978
Conversation
Changesets: - Azure libs for network vendored in with go vendor; including reps - Implemented and test passed for config decoding of RetryJoinAzure - Added the RetryJoinAzure struct which has the mapstructure to config file; including top level - Implement the merge logic for all the fields in RetryJoinAzure struct - Implemented and test passed for discovering of Azure Hosts using tags; for now only Public Environment - Added 2 additional cli config for tag name + value; credentials need to be passed via config file - Cleaned up discover Azure Hosts to its bare minimum and try to be as robust in handling nil pointers - Refactored the retryJoin so standardised to detect which is enabled ec2, gee or azure and take action accordingly TODO: Review of PR and update the docs and with example config.
Changesets: - Updated docs to have the Azure Retry Join using Tags/Value - Added details for Retry Join in options + config TODO: Find out the minimal IAM key needed to ListAll Network Interfaces
Changesets: - Azure libs for network vendored in with go vendor; including reps - Implemented and test passed for config decoding of RetryJoinAzure - Added the RetryJoinAzure struct which has the mapstructure to config file; including top level - Implement the merge logic for all the fields in RetryJoinAzure struct - Implemented and test passed for discovering of Azure Hosts using tags; for now only Public Environment - Added 2 additional cli config for tag name + value; credentials need to be passed via config file - Cleaned up discover Azure Hosts to its bare minimum and try to be as robust in handling nil pointers - Refactored the retryJoin so standardised to detect which is enabled ec2, gee or azure and take action accordingly TODO: Review of PR and update the docs and with example config.
Changesets: - Updated docs to have the Azure Retry Join using Tags/Value - Added details for Retry Join in options + config TODO: Find out the minimal IAM key needed to ListAll Network Interfaces
# Conflicts: # command/agent/command.go
# Conflicts: # command/agent/command_test.go
@leowmjw I'm going to take a look at this. Could you please rebase your branch, resolve any conflicts and force push the changes? I've recently moved some code around. The retry/join code now lives in separate files per provider. This will make the review easier. |
@magiconair thanks for the heads-up; yeah I noticed the code being refactored :P I'll fix it up later this week when I get some time and ping you for review. |
@leowmjw ping |
Changesets: - Put back removed retry-join-azure-* params - Refactor out the discoverAzureHosts method to its own file as per same in AWS, GCE
@magiconair Ready for your review. Thanks! Simple usage via Terraform can be found at: https://github.com/leowmjw/nomad-box/blob/master/terraform/templates/base.tpl
|
Thx. I have a look on Tue or Wed. |
@leowmjw I've rebased your change again and split out the vendored libs into separate commits. Could you have a look and test whether it works, please? |
Latest test binaries in: https://gist.github.com/leowmjw/fe8344b5b8e7c0d000f18335774e7ef3/revisions Next to test final in Nomad Box to ensure vendor lib did not break anything. |
@magiconair Just to confirm; it works fine; auto join cluster as per below:
|
Thank you @leowmjw - appreciate the final check! |
Awesome @leowmjw . Thanks for the patch and for the testing. |
Addresses #2667; please provide feedback, suggestions and guidance. @slackpad for your consideration.
DONE:
Binaries at: https://gist.github.com/leowmjw/fe8344b5b8e7c0d000f18335774e7ef3
Changesets: