#pool #node #server #sdk #drain #login #cli

rancher

A fledgling rancher client. Just to flip drainOnDelete for my node pools

9 releases

0.2.1 Jun 7, 2023
0.2.0 Apr 8, 2023
0.1.6 Dec 8, 2021
0.1.0 Aug 25, 2021

#239 in Authentication

43 downloads per month

MIT license

11KB
259 lines

Rancher Rust SDK

Need to toggle a node pool's drain before delete? You're in the right place.

You will need the rancher cli to login to servers, generating the .rancher/cli2.json file in your home directory.

Login to servers like this:

% rancher login https://my.rancher.server.com --token token-asdf123:supersecret --name https://my.rancher.server.com

then you can use that name with this library

Dependencies

~7–21MB
~313K SLoC