From b3de83ed60db0ff919577e52dcb203a8ee58e289 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 8 Apr 2022 09:41:48 +0300 Subject: [PATCH] Make sure container image labels configuration are considered by Jib Fixes: #24820 --- .../io/quarkus/container/image/jib/deployment/JibProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java b/extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java index 367d118d9ceeb..3c9d650e40147 100644 --- a/extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java +++ b/extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java @@ -705,7 +705,7 @@ private void handleExtraFiles(OutputTargetBuildItem outputTarget, JibContainerBu private Map allLabels(JibConfig jibConfig, ContainerImageConfig containerImageConfig, List containerImageLabels) { - if (jibConfig.labels.isEmpty() && containerImageLabels.isEmpty()) { + if (jibConfig.labels.isEmpty() && containerImageLabels.isEmpty() && containerImageConfig.labels.isEmpty()) { return Collections.emptyMap(); }