Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23961

[GSS](7.4.z) ImageStream jboss-eap74-openjdk8-openshift is using non-groupfied API resources which are deprecated - missing changes in eap-s2i-build.yaml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 7.4.5.CR1
    • OpenShift
    • None
    • False
    • False
    • Hide

      Modify the ImageStream as follows:

      $ diff -u eap74-openjdk8-image-stream.json.original eap74-openjdk8-image-stream.json
      --- eap74-openjdk8-image-stream.json.original	2022-01-17 10:19:47.172311992 +0900
      +++ eap74-openjdk8-image-stream.json	2022-01-17 10:23:46.782536205 +0900
      @@ -2,7 +2,7 @@
           "kind": "List",
           "apiVersion": "v1",
           "metadata": {
      -        "name": "jjboss-eap74-openjdk8-openshift-image-streams",
      +        "name": "jboss-eap74-openjdk8-openshift-image-streams",
               "annotations": {
                   "description": "ImageStream definition for JBoss Enterprise Application Platform 7.4.0 with OpenJDK 8",
                   "openshift.io/provider-display-name": "Red Hat, Inc."
      @@ -11,7 +11,7 @@
           "items": [
               {
                   "kind": "ImageStream",
      -            "apiVersion": "v1",
      +            "apiVersion": "image.openshift.io/v1",
                   "metadata": {
                       "name": "jboss-eap74-openjdk8-openshift",
                       "annotations": {
      @@ -72,7 +72,7 @@
               },
               {
                   "kind": "ImageStream",
      -            "apiVersion": "v1",
      +            "apiVersion": "image.openshift.io/v1",
                   "metadata": {
                       "name": "jboss-eap74-openjdk8-runtime-openshift",
                       "annotations": {
      
      Show
      Modify the ImageStream as follows: $ diff -u eap74-openjdk8-image-stream.json.original eap74-openjdk8-image-stream.json --- eap74-openjdk8-image-stream.json.original 2022-01-17 10:19:47.172311992 +0900 +++ eap74-openjdk8-image-stream.json 2022-01-17 10:23:46.782536205 +0900 @@ -2,7 +2,7 @@ "kind" : "List" , "apiVersion" : "v1" , "metadata" : { - "name" : "jjboss-eap74-openjdk8-openshift-image-streams" , + "name" : "jboss-eap74-openjdk8-openshift-image-streams" , "annotations" : { "description" : "ImageStream definition for JBoss Enterprise Application Platform 7.4.0 with OpenJDK 8" , "openshift.io/provider-display-name" : "Red Hat, Inc." @@ -11,7 +11,7 @@ "items" : [ { "kind" : "ImageStream" , - "apiVersion" : "v1" , + "apiVersion" : "image.openshift.io/v1" , "metadata" : { "name" : "jboss-eap74-openjdk8-openshift" , "annotations" : { @@ -72,7 +72,7 @@ }, { "kind" : "ImageStream" , - "apiVersion" : "v1" , + "apiVersion" : "image.openshift.io/v1" , "metadata" : { "name" : "jboss-eap74-openjdk8-runtime-openshift" , "annotations" : {
    • Hide
      $ oc project openshift
      $ oc version
      Client Version: 4.9.11
      Server Version: 4.9.11
      $ oc replace --force -f \
      > [https://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap74/eap74-openjdk8-image-stream.json]
      W0117 12:06:27.453325 31826 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      imagestream.image.openshift.io "jboss-eap74-openjdk8-openshift" deleted
      W0117 12:06:27.459735 31826 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      imagestream.image.openshift.io "jboss-eap74-openjdk8-runtime-openshift" deleted
      W0117 12:06:27.474227 31826 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      
      Show
      $ oc project openshift $ oc version Client Version: 4.9.11 Server Version: 4.9.11 $ oc replace --force -f \ > [https: //raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap74/eap74-openjdk8-image-stream.json] W0117 12:06:27.453325 31826 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource imagestream.image.openshift.io "jboss-eap74-openjdk8-openshift" deleted W0117 12:06:27.459735 31826 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource imagestream.image.openshift.io "jboss-eap74-openjdk8-runtime-openshift" deleted W0117 12:06:27.474227 31826 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource

      This is a clone of JBEAP-23082. The eap-s2i-build.yaml seems to not have been updated for the new 7.4.5.GA-CR1 Open Shift images. It's missing the

      "apiVersion": "image.openshift.io/v1",
      

      attribute as described in the workaround section and here.

      ImageStream jboss-eap74-openjdk8-openshift is using non-groupfied API resources which are deprecated since OCP 4.7. More information can be found in OCP 4.7 release notes Use of v1 for apiVersion for OpenShift Container Platform resources

      $ oc replace --force -f \
      > https://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap74/eap74-openjdk8-image-stream.json
      W0117 12:06:27.453325   31826 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      imagestream.image.openshift.io "jboss-eap74-openjdk8-openshift" deleted
      W0117 12:06:27.459735   31826 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      imagestream.image.openshift.io "jboss-eap74-openjdk8-runtime-openshift" deleted
      W0117 12:06:27.474227   31826 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      

              chaowan@redhat.com Chao Wang
              vobratil1 Vilém Obrátil
              Peter Mackay Peter Mackay
              Peter Mackay Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: