-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Initial impl. of cloud provider for AWS #1229
Conversation
@ragnard first, thanks a ton for this. Second, can you put the new dependencies and the other changes into separate commits? It's really hard to look at the important stuff in the github diff view when it's all together. |
I also suspect I'm going to ask for tests :) |
Syre, will do that. I'm UTC+0 so probably tomorrow...
|
2c3ff39
to
747c288
Compare
Updated with separate commits for dependencies and cloud provider impl. |
747c288
to
c6d0d1c
Compare
@lavalamp Regarding tests, I'm not sure what (if anything) is a good fit for unit testing in these commits. Did you have any specific concerns or suggestions? If so, I'd be happy to address them. |
@ragnard I'm willing to take this without tests, because it's still an improvement over not having it-- But I think readAWSCloudConfig, IPAddress, and getInstancesByRegex functions could use tests; for the latter two, you'd provide a fake/mock ec2 and verify that the functions are doing the right thing. This would help keep us from breaking the behavior should we do a refactor of the cloudprovider interface. |
121084c
to
b469474
Compare
@lavalamp Added some tests. This is basically the first Go code I'm writing so I'm probably missing some stuff. I extracted an interface for the EC2 interactions I'm doing, implemented that using the |
b469474
to
d1071f3
Compare
@ragnard Actually it looks pretty good, I left a few suggestions but you're basically doing it right. |
d1071f3
to
355a177
Compare
@lavalamp Updated tests after suggestions. Added test for |
- goamz: for interacting with AWS API - gcfg: for cloud provider config file (as suggested in issue)
355a177
to
b548465
Compare
LGTM |
Initial impl. of cloud provider for AWS
Bug 2065749: UPSTREAM: 109103: cpu/memory manager containerMap memory leak
Sumitting the pull request discussed in issue #1187 for initial review and more feedback.
Implements only the
cloudprovider.Instances
interface for now.New dependencies:
Caveats:
Name
tag (private DNS is auto-assigned and not something you can affect)Configuration file is in INI format (as implemented by gcfg) and currently has only one (required) configuration option, the region: