I try to catch the available request/limits resource in my cluster with a script to determine if I have enough resource to deploy new pod in my cluster. I want catch this information from a yaml or json output to easily manipulate the output with a jq or yq tool.
Actual results
The option -a is ignored when the output is not table
Context
I try to catch the available request/limits resource in my cluster with a script to determine if I have enough resource to deploy new pod in my cluster. I want catch this information from a yaml or json output to easily manipulate the output with a
jq
oryq
tool.Actual results
The option
-a
is ignored when the output is not tableExpected results
When the
-a
is specify with a json or yaml output, remplacerequests
andlimits
(or add a field) byrequestsAvailable
andlimitsAvailable
Version