Details
-
Bug
-
Resolution: Not a Bug
-
Major
-
fuse-7.11-GA
-
None
Description
By following the instruction, oc create command fails with the certified version's oc client library.
https://access.redhat.com/documentation/en-us/red_hat_fuse/7.11/html/fuse_on_openshift_guide/get-started-admin#install-fuse-on-openshift4
for template in eap-camel-amq-template.json \ eap-camel-cdi-template.json \ eap-camel-cxf-jaxrs-template.json \ eap-camel-cxf-jaxws-template.json \ karaf-camel-amq-template.json \ karaf-camel-log-template.json \ karaf-camel-rest-sql-template.json \ karaf-cxf-rest-template.json ; do oc create -n openshift -f \ https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.0.fuse-sb2-7_11_0-00020-redhat-00001/quickstarts/${template} done for template in spring-boot-2-camel-amq-template.json \ spring-boot-2-camel-config-template.json \ spring-boot-2-camel-drools-template.json \ spring-boot-2-camel-infinispan-template.json \ spring-boot-2-camel-rest-3scale-template.json \ spring-boot-2-camel-rest-sql-template.json \ spring-boot-2-camel-template.json \ spring-boot-2-camel-xa-template.json \ spring-boot-2-camel-xml-template.json \ spring-boot-2-cxf-jaxrs-template.json \ spring-boot-2-cxf-jaxws-template.json \ spring-boot-2-cxf-jaxrs-xml-template.json \ spring-boot-2-cxf-jaxws-xml-template.json ; do oc create -n openshift -f \ https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.0.fuse-sb2-7_11_0-00020-redhat-00001/quickstarts/${template} done
With the oc library comes with 4.11, it fails with the following error.
error: resource mapping not found for name: "s2i-fuse711-spring-boot-2-camel-amq" namespace: "" from "https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.0.fuse-sb2-7_11_0-00020-redhat-00001/quickstarts/spring-boot-2-camel-amq-template.json": no matches for kind "Template" in version "v1" ensure CRDs are installed first
With the old oc library(this time, 4.10), it works with warn message.
W0302 10:17:57.053436 27634 shim_kubectl.go:58] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "template.openshift.io/v1" for your resource template.template.openshift.io/s2i-fuse711-spring-boot-2-camel-amq created
It looks like we need to update the json file.