Uploaded image for project: 'KIE Cloud'
  1. KIE Cloud
  2. KIECLOUD-305

Move ImageStream "labels" into "metadata"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 6.4.13.GA
    • 6.4.12.GA
    • RHDS, RHIPS
    • None

      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.

              rhn-support-fspolti Filippe Spolti
              bradmwilliams Brad Williams
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: