-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add ability to delete using ip address #21
Conversation
Exceptional work 👏 thank you for testing each provider too. I have a few review comments/questions, but this overall looks great. |
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.
A few minor changes requested and questions
I just merged in #16 which added the EC2 functionality. Would you be able to rebase this and add the delete by IP for EC2 please? |
When rebasing / adding EC2, please could you squash the commits into one so that history doesn't contain the revisions, but just the final version? Thanks a lot for getting this feature into inletsctl 💯 |
Sure, will do! |
10fba9f
to
07637d2
Compare
61a85c0
to
d0b5150
Compare
Added lookup functions to allow the use of the ip address instead of the id when deleting exit nodes Signed-off-by: Adam Johnson <[email protected]>
d0b5150
to
585d0f3
Compare
@alexellis , rebased and added ec2 |
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.
Approved.
Description
I added lookup functions for each provisioner that list nodes based on tag/label where the provisioner supports it and then uses the ip to get the id of the node which is used to then delete it.
Related to #2
How Has This Been Tested?
I created an exit node and then deleted it using every provider.
Packet
Create
Delete
Run delete again
DigitalOcean
Create
Delete
Run delete again
GCE
Create
Delete
Run delete again
Civo
Create
Delete
Run delete again
Scaleway
Create
Delete
Run delete again
AWS EC2
Create
Delete
Run delete again
How are existing users impacted? What migration steps/scripts do we need?
This functionality will only work on exit nodes created with a version that contains this pull request as it tags or labels the exit nodes.
Checklist:
I have:
git commit -s