Re: [kubernetes-users] Drain nodes using client-go library

2017-11-14 Thread
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 wrote: > I am trying to write an applic

[kubernetes-users] Drain nodes using client-go library

2017-11-14 Thread jatan28
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 ca