mrlunchbox777 / basic-setup

basic box setup
MIT License
6 stars 3 forks source link

feature: Clean output of get-pod-ports #168

Open mrlunchbox777 opened 2 months ago

mrlunchbox777 commented 2 months ago

Contact Details

mrlunchbox777@gmail.com

Feature Description

Limit the stdout of get-pod-ports.

Why?

It's unstable and difficult to parse programmatically as is.

What should happen?

This should depend on the move to golang because it'll be easier to abstract.

The output should be limited to some json/yaml that provides what an end user might need/want.

Covers this TODO.

Steps to Test

These should be refined as it becomes more obvious what an end user might want.

  1. Assuming the bsctl command to call this function is foobar and you have run the create-test-pod command, calling foobar -l "app.kubernetes.io=test-pod" | yq .items[0] shouldn't return an error or null.

Code of Conduct