Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1336

Quarkus Operator SDK is not compatible with RHBQ 2.2

XMLWordPrintable

    • False
    • False
    • +
    • Hide
      • Create project:
      mvn -Dquarkus-plugin.version=2.2.3.Final-redhat-00010 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.3.Final-redhat-00010:create -DprojectGroupId=io.quarkus.qe -DprojectArtifactId=operator-sdk -DprojectVersion=1.0.0-SNAPSHOT -DplatformGroupId=com.redhat.quarkus.platform -DplatformArtifactId=quarkus-bom -Dextensions=operator-sdk
      
      • Build project:
      mvn -Dquarkus-plugin.version=2.2.3.Final-redhat-00010 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom package -DskipTests -DskipITs
      

      The same will fail if using the 2.2.3.Final upstream:

      -Dquarkus-plugin.version=2.2.3.Final -Dquarkus.platform.group-id=io.quarkus.platform
      
      Show
      Create project: mvn -Dquarkus-plugin.version=2.2.3.Final-redhat-00010 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.3.Final-redhat-00010:create -DprojectGroupId=io.quarkus.qe -DprojectArtifactId= operator -sdk -DprojectVersion=1.0.0-SNAPSHOT -DplatformGroupId=com.redhat.quarkus.platform -DplatformArtifactId=quarkus-bom -Dextensions= operator -sdk Build project: mvn -Dquarkus-plugin.version=2.2.3.Final-redhat-00010 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom package -DskipTests -DskipITs The same will fail if using the 2.2.3.Final upstream: -Dquarkus-plugin.version=2.2.3.Final -Dquarkus.platform.group-id=io.quarkus.platform

      Using the quarkus-operator-sdk extensions fails to build:

      [ERROR] Failed to execute goal com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.3.Final-redhat-00006:build (default) on project operator-sdk: Failed to build quarkus application: java.lang.RuntimeException: Failed to load steps from class io.quarkiverse.operatorsdk.deployment.OperatorSDKProcessor: Type io.quarkus.kubernetes.spi.GeneratedKubernetesResourceBuildItem not present -> [Help 1]
      

      The problem is that the class `GeneratedKubernetesResourceBuildItem` does not exist in 2.2. So, this also does not work using upstream 2.2.3.Final.

      The generated app contains the following artifact:

      <dependency>
            <groupId>io.quarkiverse.operatorsdk</groupId>
            <artifactId>quarkus-operator-sdk</artifactId>
            <version>2.0.0.CR1</version>
          </dependency>
      

              gandrian Georgios Andrianakis
              jcarvaja@redhat.com Jose Carvajal Hilario
              Jose Carvajal Hilario Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: