The logic is client-side in kubectl. GitHub is showing me unicorns, so I can't find out where exactly right now, but I would look for it there and either duplicate what it does, or even just link and call that bit of logic.
/MR On Tue, Nov 14, 2017, 20:58 <jata...@gmail.com> wrote: > I am trying to write an application in Go that would drain the nodes. > Currently the client-go doesn't have a way to do that. I just found that > there is a Delete() available with a TerminationGracePeriod. But afaik it > is a little different than the way Drain works. Can someone help me on how > I can do a Drain in Go. > > -- > You received this message because you are subscribed to the Google Groups > "Kubernetes user discussion and Q&A" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kubernetes-users+unsubscr...@googlegroups.com. > To post to this group, send email to kubernetes-users@googlegroups.com. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.