Merge pull request #3122 from stefanberger/descriptor_annotations.pr

Extend adaptImage function with annotations case
This commit is contained in:
Derek McGowan 2019-03-22 14:28:15 -07:00 committed by GitHub
commit 68c44f8cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,8 @@ func adaptImage(o interface{}) filters.Adaptor {
return checkMap(fieldpath[1:], obj.Labels)
// TODO(stevvooe): Greater/Less than filters would be awesome for
// size. Let's do it!
case "annotations":
return checkMap(fieldpath[1:], obj.Target.Annotations)
}
return "", false