Skip to content

Conversation

mytunguyen
Copy link

@mytunguyen mytunguyen commented Aug 5, 2020

What this PR does / why we need it:

This PR implements machine pools for CAPA using AWS Auto Scaling Groups. In this PR, an /exp path is added similar to CAPI to be the home for the AWSMachinePool API and controller.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1784

@k8s-ci-robot k8s-ci-robot requested review from ncdc and vincepri August 5, 2020 17:26
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Aug 5, 2020
@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please sign in with your organization's credentials at https://identity.linuxfoundation.org/projects/cncf to be authorized.
  • If you have done the above and are still having issues with the CLA being reported as unsigned, please log a ticket with the Linux Foundation Helpdesk: https://support.linuxfoundation.org/
  • Should you encounter any issues with the Linux Foundation Helpdesk, send a message to the backup e-mail support address at: [email protected]

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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Aug 5, 2020
@dthorsen
Copy link
Contributor

dthorsen commented Aug 5, 2020

I signed it

@dthorsen
Copy link
Contributor

dthorsen commented Aug 5, 2020

/check-cla

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Aug 5, 2020
@ncdc
Copy link
Contributor

ncdc commented Aug 5, 2020

/retitle ✨ Implement AWSMachinePools

@k8s-ci-robot k8s-ci-robot changed the title ⚠️ feat: Implement AWSMachinePools ✨ Implement AWSMachinePools Aug 5, 2020
@mytunguyen
Copy link
Author

/retest

@benmoss
Copy link

benmoss commented Aug 5, 2020

Should this be an experimental/feature-flag feature? I don't think we have any right now, but it is in CAPZ and CAPI.

@benmoss
Copy link

benmoss commented Aug 6, 2020

For anyone looking to kick the tires on this, this is a decent starting manifest: https://gist.github.com/benmoss/db4ede41d2b767095aa6ab8b381bcb50

@dennisme
Copy link

dennisme commented Aug 6, 2020

hey 👋 , we have a tagging and subnet update PR ready to open once this lands. We didn't want to muddy the waters. Just a heads up you can see them here: newrelic-forks#55 newrelic-forks#56

@rudoi
Copy link
Contributor

rudoi commented Aug 11, 2020

-cracks knuckles- ok, linter, you wanna play?

Copy link
Member

@randomvariable randomvariable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly lgtm

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 13, 2020
@randomvariable randomvariable added this to the v0.6.1 milestone Aug 14, 2020
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 8, 2020
@richardcase
Copy link
Member

Ah, linting failure. Does the MockEC2MachineInterface need updating with the change to the LaunchTemplateNeedsUpdate function?

@randomvariable
Copy link
Member

Running make generate now should resolve the verify issue.

Copy link
Member

@richardcase richardcase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @mytunguyen 👍 . Some minor comments....will take another pass through later

Copy link
Member

@richardcase richardcase Sep 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be good to have the descriptions/validation comments here as well. On the types in this file.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet. i updated the descriptions and added validations where I thought made sense. let me know if i missed something!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to filter the events if paused?

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 23, 2020
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 23, 2020
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// +kubebuilder:validation:Enum=standard;io1;gp2;st1;sc1
// +kubebuilder:validation:Enum=standard;io1;io2;gp2;st1;sc1

Nit: io2 was added since the start of this PR. Can do as follow up

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly I'm not even using EBS with our machinepools/ASG's. I think this struct fell here on day 1 while I was listing out "what might we need in the future". I can definitely delete it for now if that helps?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either add io2 now, or I can PR it next. Don't delete the validation though.

@randomvariable
Copy link
Member

I think if we can resolve the choice of strings versus aliased string type in the API, the other issues we can deal with as follow ups.

@randomvariable
Copy link
Member

CRDs need updating, as well as 3 linter issues need addressing.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 25, 2020
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 28, 2020
@randomvariable
Copy link
Member

If this is good to go, let's squash the "fix" commits, and can approve in the morning UK time.

Co-authored-by: Nicole Yson <[email protected]>
Co-authored-by: Andrew Rudoi <[email protected]>

Co-authored-by: mnguyen <[email protected]>

Co-authored-by: Naadir Jeewa <[email protected]>
@richardcase
Copy link
Member

A few minor items that could be covered in the follow-up

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 29, 2020
@randomvariable
Copy link
Member

Follow ups to do in #1968

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: randomvariable

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 29, 2020
@k8s-ci-robot k8s-ci-robot merged commit 8da0cb5 into kubernetes-sigs:master Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EKS self managed node group support