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
get/delete/drain support for non-eksctl created managed nodegroups #2911
Conversation
Co-authored-by: Claudia <claudiaberesford@gmail.com>
Co-authored-by: Claudia <claudiaberesford@gmail.com>
@@ -265,6 +267,8 @@ const ( | |||
NodeGroupTypeManaged NodeGroupType = "managed" | |||
// NodeGroupTypeUnmanaged defines an unmanaged nodegroup | |||
NodeGroupTypeUnmanaged NodeGroupType = "unmanaged" | |||
// NodeGroupTypeUnowned defines an unowned nodegroup | |||
NodeGroupTypeUnowned NodeGroupType = "unowned" |
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.
this is always also managed, right?
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.
yes @michaelbeaumont . I was tempted to call it NodeGroupTypeManagedUnowned
but it felt like too much 😂
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.
Maybe use the comment to elaborate?
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.
i was just thinking it might be unclear (at first glance) to users if they see Unowned
whether it's managed or unmanaged.
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.
I think the Unowned abstraction you chose is fine, no alternative is jumping out at me right now.
I've moved some logic into pkg/ctl/cmdutils/nodegroup.go, I'm not sure where it should live, open to suggestions.
Based on where that function is being used, and based on how things are currently organised in that area, it makes sense for now. Maybe as we tidy up more we will see more clearly 🤷♀️ . I am generally not a fan of that cmdutils
package, it's become a bit of a dumping ground for stuff which doesn't really belong anywhere else.
👌
Yeah I agree, also the |
TEESSSTTSSSSS |
I do want to add tests, but because this interacts with |
😭 |
Description
Adds support for get/delete/drain nodegroups not created by eksctl. Managed nodegroups now have a property
Unowned
(I hate this word, open to suggestions)#2809
Discussion
pkg/ctl/cmdutils/nodegroup.go
, I'm not sure where it should live, open to suggestions.Checklist
README.md
, or theuserdocs
directory)area/nodegroup
), target version (e.g.version/0.12.0
) and kind (e.g.kind/improvement
)