-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Adding config file option for create nodegroup #553
Conversation
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.
Looks pretty good and complete. Just a few questions/comments
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.
There are some info messages coming from cfn/builder/nodegroup.go that could benefit from additional logging values - i.e. the nodegroup name. Here is what is output:
ℹ] creating nodegroup stack "eksctl-pmr-ngtest-nodegroup-pmr-ngtest-ng-3"
[ℹ] creating nodegroup stack "eksctl-pmr-ngtest-nodegroup-pmr-ngtest-ng-1"
[ℹ] creating nodegroup stack "eksctl-pmr-ngtest-nodegroup-pmr-ngtest-ng-2"
[ℹ] --nodes-min=1 was set automatically
[ℹ] --nodes-max=1 was set automatically
[ℹ] --nodes-min=1 was set automatically
[ℹ] --nodes-max=1 was set automatically
[ℹ] --nodes-min=1 was set automatically
[ℹ] --nodes-max=1 was set automatically
delete nodegroup allows the nodegroup name to be specified either directly: The docs are not consistent. The README.md calls out the latter, the message given in create when an error occurs suggests the former. Do we want to change this so that there is only one way (and, if so, which way?) |
my .02 on |
8e2ee7a
to
00eb146
Compare
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.
Great job Jerry. Builds and works as expected and documented.
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 can't wish more than this for the first implementation! Clean and complete, well-documented. I'm impressed to your job @jrryjcksn
README.md
Outdated
@@ -185,6 +192,20 @@ To create an additional nodegroup, use: | |||
eksctl create nodegroup --cluster=<clusterName> [--name=<nodegroupName>] | |||
``` | |||
|
|||
Additionally, you can use the same config file used for create | |||
cluster: |
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 should probably be create cluster
or eksctl create cluster
.
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.
Sure, okay
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.
LGTM, just needs a rebase and then we can merge.
…s; make sure region is set before creating ClusterProvider
…" shorthand for --only
36bfe01
to
f228028
Compare
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.
@jrryjcksn please merge!
Description
Allow a user to pass a config file when creating nodegroups (via --config-file or -f) and select particular nodegroups from the file (via --only or -o ).
Checklist
make build
)make test
)make integration-test
)README.md
, andexamples
directory)humans.txt
file