7.3. Red Hat ビルドの Kogito
指定のアセットから、プロジェクトの生成に、誤ったアーキタイプが使用される [RHPAM-3654]
問題: KogitoBuild のソースとしてアセットをアップロードすると、Red Hat ビルドの Kogito S2I イメージは kogito-quarkus-archetype:1.5.1-SNAPSHOT を使用してプロジェクトを生成します。kogito-quarkus-dm-archetype:1.5.0.redhat-00001 を使用する必要があります。
問題の再現手順:
- RHPAM Kogito Operator をインストールします。
以下のように
KogitoBuildを作成します。apiVersion: rhpam.kiegroup.org/v1 kind: KogitoBuild metadata: name: example-quarkus-local spec: buildImage: >- registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-builder-rhel8:7.11.0-1 runtimeImage: >- registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-runtime-jvm-rhel8:7.11.0-3 type: LocalSource以下のように、Red Hat OpenShift Container クライアントを使用してアセットを Red Hat OpenShift Container Platform にアップロードします。
oc start-build example-quarkus-local-builder --from-file=https://github.com/kiegroup/kogito-examples/blob/stable/dmn-quarkus-example/src/main/resources/Traffic%20Violation.dmn- Builder ログファイルを確認します。
想定される結果: KogitoBuild のアセットをアップロードすると、Red Hat ビルドの Kogito S2I イメージは kogito-quarkus-dm-archetype:1.5.0.redhat-00001 を使用してプロジェクトを生成します。
実際の結果: KogitoBuild のアセットをアップロードすると、Red Hat ビルドの Kogito S2I イメージは kogito-quarkus-archetype:1.5.1-SNAPSHOT を使用してプロジェクトを生成します。
回避策: なし