Suppressing digest for docker service ls/ps#28539
Conversation
|
Looks like test failures are related, working on fixing them now. |
cli/command/service/list.go
Outdated
There was a problem hiding this comment.
This type assertion may fail. Images do not always have a tag.
This is probably why some tests are failing.
You shouldn't ignore the second value from the type assertion:
namedTagged, ok := ref.(distreference.NamedTagged)and the use of Name and Tag should be guarded by if ok.
There was a problem hiding this comment.
@aaronlehmann At first I thought that the tests were checking against the spec which was causing failures (still confirming that). I've updated to include the ok value from the type assertion.
90faafb to
a4dc9df
Compare
|
Tests pass now. Ping @aaronlehmann @cpuguy83 @thaJeztah |
|
Is there anything we can do for |
|
Sorry for the late reply; looking at |
|
@thaJeztah that makes sense. Is |
cli/command/service/list.go
Outdated
cli/command/task/print.go
Outdated
cac53ca to
a717a64
Compare
Signed-off-by: Nishant Totla <[email protected]>
a717a64 to
e7d83fd
Compare
|
@thaJeztah updated PR to print full image string if |
|
There should be docs-update right ? |
|
@thaJeztah will do a follow-up for the docs ⚓ |
|
@nishanttotla Did you have a chance to check if |
|
@cpuguy83 I thought |
|
@cpuguy83 you're right, this should be done for |
Suppressing digest for docker service ls/ps
This PR simplifies the UI for the changes introduced in #28173 (Pin images by digest).
In particular, this PR suppresses the digest for
docker service lsanddocker service ps, showing onlyimage:tag. The full digestimage:tag@digestis still shown as part ofdocker service inspect.Fix #28502