I wanted slightly better output from kubectl get pods
, so wrote the jankiest wrapper in Rust for no good reason to give me information on the images in use, and a rough run down for the security options being tried.
![screenshot of kubectl-gat pods](https://private-user-images.githubusercontent.com/39111/311377566-b3c8dbeb-5737-408a-b9bd-add72387d627.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzMTQzMzUsIm5iZiI6MTcxOTMxNDAzNSwicGF0aCI6Ii8zOTExMS8zMTEzNzc1NjYtYjNjOGRiZWItNTczNy00MDhhLWI5YmQtYWRkNzIzODdkNjI3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI1VDExMTM1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIxZGM1OTFkNzc5NGMzYWRlOGZkMGJhZTUwOTE4YzllYzdkMzY4YmE2OWI4NzNmYzYxODQ4Mzc4ZmIyNjhlYzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uq96ZsKrMGfxf6GBRniPSINNn2bVFn4GnnpaoWYu8gY)
yes, but frankly I'd rather write bad Rust than ever use gotemplate.
Kuberninis get pods
output comes from a table the server returns (apparently), so parsing the JSON from kubectl get pods -o json
frankly seemed easier.
Yes this is maybe the worst Rust code you've ever seen, but this is how I'm learning so I don't really care.
Yes, that's very possible.