For ImageStreams, Openshift is not able to successfully patch an ImageStream that has "labels" outside of it's "metadata" block. When a user uses 'oc apply', it creates an annotation that contains this errant label. If and when the ImageStream changes, the next apply will fail with the following error:
"err": "warning: error calculating patch from openapi spec: unable to find api field \"labels\" in com.github.openshift.api.image.v1.ImageStream\nwarning: error calculating patch from openapi spec: unable to find api field \"labels\" in com.github.openshift.api.image.v1.ImageStream\nunable to find api field in struct ImageStream for the json field \"labels\"\nunable to find api field in struct ImageStream for the json field \"labels\"\n",
Ideally, we would like to see this fixed in all versions of these templates as it appears it's been copied and pasted around quite a bit.
- is cloned by
-
KIECLOUD-307 [OpenJDK] Move ImageStream "labels" into "metadata"
- Closed