Skip to content

Commit

Permalink
fix: resolve container-image label and Strimzi API index warnings (#917)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <[email protected]>
  • Loading branch information
MikeEdgar authored Jul 19, 2024
1 parent cd857b3 commit 29d9b40
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@
<profile>
<id>container-image</id>
<properties>
<quarkus.profile>build</quarkus.profile>
<quarkus.docker.dockerfile-jvm-path>src/main/docker/Dockerfile</quarkus.docker.dockerfile-jvm-path>
<quarkus.container-image.build>true</quarkus.container-image.build>
<quarkus.container-image.registry>${docker.registry}</quarkus.container-image.registry>
Expand Down
7 changes: 5 additions & 2 deletions api/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ quarkus.swagger-ui.title=Console API

quarkus.log.category."org.apache.kafka".level=ERROR

quarkus.container-image.labels."org.opencontainers.image.version"=${quarkus.application.version}
quarkus.container-image.labels."org.opencontainers.image.revision"=${git.revision}
%build.quarkus.container-image.labels."org.opencontainers.image.version"=${quarkus.application.version}
%build.quarkus.container-image.labels."org.opencontainers.image.revision"=${git.revision}

#
# A Quarkus optimization may remove a CDI bean that is not directly used.
Expand All @@ -54,6 +54,9 @@ quarkus.container-image.labels."org.opencontainers.image.revision"=${git.revisio
# eligible for access from a CDI `Instance`.
quarkus.arc.unremovable-types=com.github.streamshub.console.api.**

quarkus.index-dependency.strimzi-api.group-id=io.strimzi
quarkus.index-dependency.strimzi-api.artifact-id=api

console.kafka.admin.request.timeout.ms=10000
console.kafka.admin.default.api.timeout.ms=10000

Expand Down
1 change: 1 addition & 0 deletions operator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
<profile>
<id>container-image</id>
<properties>
<quarkus.profile>build</quarkus.profile>
<quarkus.docker.dockerfile-jvm-path>src/main/docker/Dockerfile</quarkus.docker.dockerfile-jvm-path>
<quarkus.container-image.build>true</quarkus.container-image.build>
<quarkus.container-image.registry>${container-image.registry}</quarkus.container-image.registry>
Expand Down
3 changes: 3 additions & 0 deletions operator/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ quarkus.container-image.name=console-operator
quarkus.operator-sdk.activate-leader-election-for-profiles=prod
quarkus.operator-sdk.controllers."consolereconciler".selector=${console.selector}

%build.quarkus.container-image.labels."org.opencontainers.image.version"=${quarkus.application.version}
%build.quarkus.container-image.labels."org.opencontainers.image.revision"=${git.revision}

# set to true to automatically apply CRDs to the cluster when they get regenerated
%dev.quarkus.operator-sdk.crd.apply=true
%test.quarkus.operator-sdk.crd.apply=true
Expand Down

0 comments on commit 29d9b40

Please sign in to comment.