Extend adaptImage function with annotations case
Extend the adaptImage function with a case for handling the annotations so they can be used in the filter adaptors for fieldpaths. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stefan Berger
					Stefan Berger