Repository navigation
Sync with cluster operator implementation - #2
ingvagabund merged 2 commits into
Conversation
|
@spangenberg FYI |
|
@ingvagabund are any of the open tasks above something I can help out with and send you a PR to your branch? |
|
@dgoodwin I moved all the openshift specific pieces into machine manifest (e.g. into tags, labels, secrets). Feel free to review the PR. |
|
@csrwng PTAL we can iterate on the implementation later in case there are still some missing pieces (e.g. in case the way the user data are provided is not powerful enough). |
There was a problem hiding this comment.
It doesn't look like this is used anywhere
There was a problem hiding this comment.
Kept from the original template. We will need to populate it later (at least for testing purposes).
There was a problem hiding this comment.
s/string/LocalObjectReference/ done
There was a problem hiding this comment.
These should be of type AWSResourceReference
There was a problem hiding this comment.
maybe rename to awsClientBuilder? It's not clear just looking at this what client it's supposed to build
There was a problem hiding this comment.
Done as part of introducing the fake aws client.
There was a problem hiding this comment.
We should now obey the security groups specified in the machine provider config, instead of assuming what they are based on the machine type.
There was a problem hiding this comment.
This value should be based on machineProviderConfig.PublicIP
There was a problem hiding this comment.
What does this mean? Seems like you'd want all tags except for the last one (Name)
There was a problem hiding this comment.
Copy-paste from the cluster-operator :P This actually takes takes slice that contains only the first item: https://play.golang.org/p/RKFZnCF3GaB. I have changed that part to provide the list of tags directly.
There was a problem hiding this comment.
Part of the status that gets updated when the machine gets created is the PublicIP. However, after a call to runInstance, most of the time a PublicIP is not yet allocated. If we don't yet have complete status (ie. the instance state is Pending, instead of Running), maybe we should return an error so the machine controller keeps retrying until we have complete status we can set.
There was a problem hiding this comment.
Let's track that in the follow-up PR. This will need slight re-desigin as you described in the comment above. Put TODO comment in the code.
There was a problem hiding this comment.
One issue we have right now with how this works, is that usually at the end of the RunInstances call, the instance state is not yet 'Running'. Rather it is 'Pending'. Therefore the status is not yet complete (like PublicIP). One possible fix would be to wait and poll here until the instance is in the Running state. The other approach is to return an error so that the machine is requeued and in the exists function return false if the status doesn't match. That would require making the create re-entrant so we can just update the status.
There was a problem hiding this comment.
Put TODO comment in the code.
|
/lgtm |
|
@csrwng: changing LGTM is restricted to assignees, and assigning you to the PR failed. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/assign csrwng enxebre |
|
Tested and verified corresponding AWS instance gets created, resp. deleted when a machine manifest is applied, resp. deleted. |
…tances getInstances has taken an instanceStateFilter argument since it landed as GetInstances in 72b4823 (Migrate cluster operator implementation of the aws actuator, 2018-08-04, openshift#2).
…tances getInstances has taken an instanceStateFilter argument since it landed as GetInstances in 72b4823 (Migrate cluster operator implementation of the aws actuator, 2018-08-04, openshift#2).
🐛 Update OWNERS_ALIASES
Syncing the aws machine actuator implementation + providing simple unit test for the machine actuator.
Both
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYenvs need to be set.TODO
Follow up PR