kpack-cli
kpack-cli copied to clipboard
When no image is provided to `kp build list`, show Image Name instead of Image Reference
As an implication of allowing a user to return builds across images, we should consider replacing the image reference with the image name. That way, users can use it to find the image's status. I'd imagine if a user were debugging by being shown builds in a namespace, they'd like to inspect the image associated with the build. From this view, there is no mechanism to perform this action.
mgibson1121@Matthews-MBP workspace % kp build list -n default
BUILD STATUS IMAGE REASON
1 SUCCESS gcr.io/cf-build-service-dev-219913/test/ruby@sha256:9dd9e7c78f0f3cd00981ef112dfd6010e4ab31a58683e8fa6d212ec61f4d4999 CONFIG
1 FAILURE CONFIG
1 SUCCESS gcr.io/cf-build-service-dev-219913/test/matt-test-image1@sha256:1e810e9eac4efa10c40d960cbb1ab96700b33ee52961c71e41f839264b9418eb CONFIG
2 FAILURE COMMIT
3 FAILURE COMMIT
So:
- when the name is passed in, we show the Image Reference in
IMAGE
column? - when the name is not passed, we show the Image Name in the
IMAGE
column?
If that's what's intended, I wonder how we can find a way to keep the information consistent in both cases. I'd be slightly surprised to find everything else the same except for that column.
@aemengo The behavior in your bullets is what I would expect. But we can work shop it. I think we achieved incremental value with the first story.