Skip to content

Commit 68c44f8

Browse files
authored
Merge pull request containerd#3122 from stefanberger/descriptor_annotations.pr
Extend adaptImage function with annotations case
2 parents 9b882c4 + 5d50b9c commit 68c44f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

metadata/adaptors.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ func adaptImage(o interface{}) filters.Adaptor {
5151
return checkMap(fieldpath[1:], obj.Labels)
5252
// TODO(stevvooe): Greater/Less than filters would be awesome for
5353
// size. Let's do it!
54+
case "annotations":
55+
return checkMap(fieldpath[1:], obj.Target.Annotations)
5456
}
5557

5658
return "", false

0 commit comments

Comments
 (0)