#pool #node #server #sdk #drain #client #login

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

#450 in Authentication

46 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–19MB
~273K SLoC