Skip to content
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

Add eksctl drain nodegroup #592

Merged
merged 1 commit into from
Feb 28, 2019
Merged

Add eksctl drain nodegroup #592

merged 1 commit into from
Feb 28, 2019

Conversation

errordeveloper
Copy link
Contributor

@errordeveloper errordeveloper commented Feb 28, 2019

Description

Add eksctl drain nodegroup [--undo].

Towards #370.

Next I'm going to refactor this more and add it to eksctl delete nodegroup, but in another PR.

Checklist

  • Code compiles correctly (i.e make build)
  • All unit tests passing (i.e. make test)
  • All integration tests passing (i.e. make integration-test)
  • Added/modified documentation as required (such as the README.md, and examples directory)

@errordeveloper errordeveloper force-pushed the drain-ng-cmd branch 2 times, most recently from db64067 to adac1b6 Compare February 28, 2019 13:04
@errordeveloper errordeveloper changed the title WIP: Add eksctl drain nodegroup Add eksctl drain nodegroup Feb 28, 2019
fs.StringVar(&cfg.Metadata.Name, "cluster", "", "EKS cluster name (required)")
cmdutils.AddRegionFlag(fs, p)
fs.StringVarP(&ng.Name, "name", "n", "", "Name of the nodegroup to delete (required)")
fs.BoolVar(&drainNodeGroupUndo, "undo", false, "Uncordone the nodegroup")

Choose a reason for hiding this comment

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

"Uncordon"

@whereisaaron
Copy link

whereisaaron commented Feb 28, 2019

Probably too late to comment, but --undo isn't very explanatory and you are not really undoing the drain. Maybe better just to have eksctl cordon nodegroup and eksctl uncordon nodegroup, which are useful in themselves. And rather than running eksctl drain nodegroup --undo users would run eksctl uncordon nodegroup to achieve the same thing?

@errordeveloper
Copy link
Contributor Author

errordeveloper commented Feb 28, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants