Fabric8 Maven Plug-in: "The API version in the data (v1) does not match the expected API version"
Issue
When deploying a Java application to OpenShift using the Fabric8 Maven Plug-in, with YAML files in the application source tree, deployment is incomplete. The plug-in reports error messages about incorrect API versions in the YAML files. However, the API version tag
apiVersion: v1
matches the documentation, and it worked correctly with earlier versions of OpenShift.
Environment
- Red Hat OpenShift Container Platform
- 4.5.22 and later
- Maven
- Fabric8 Maven Plug-in
This specific problem does not affect OpenShift version 4.5.20 and earlier although, of course, there are potentially other problems in YAML formatting that might affect any version.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.