cli
cli copied to clipboard
Feat: Add cpu entitlement to app process table (v9)
Where this PR should be backported?
Description of the Change
Extend the v9 cf CLI to support showing the new CPU Entitlement metric. This is implemented as a breaking change with cpu entitlement replacing the cpu column from earlier versions:
state since cpu entitlement memory disk logging details
#0 running 2024-04-05T17:46:17Z 12.5% 47.4M of 1G 130.1M of 1G 0B/s of unlimited
#1 running 2024-04-05T17:46:17Z 12.8% 47.8M of 1G 130.1M of 1G 0B/s of unlimited
If the cpu entitlement stats are not available (e.g. deployment does not support it, app is stopped, etc.) then the cf CLI will show an empty value for the column.
- Bumps the minimum Cloud Controller API version to 3.160.0: https://github.com/cloudfoundry/capi-release/releases/tag/1.175.0
- Does not fall back to showing the older CPU metric if CPU Entitlement is not available. We think this is reasonable in a new major version of the CLI and simplifies the implementation.
Why Is This PR Valuable?
CPU Entitlement is a more useful metric than the older CPU metric.
Applicable Issues
#2812
How Urgent Is The Change?
Slightly less than urgent.
Other Relevant Parties
@rroberts2222