Skip to content

Commit

Permalink
Merge pull request #15565 from geoand/#15555
Browse files Browse the repository at this point in the history
Make disablement of k8s manifest generation in tests declarative
  • Loading branch information
iocanel authored Mar 9, 2021
2 parents be2bf4f + cb6fff4 commit 33364c8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import io.dekorate.utils.Strings;
import io.quarkus.deployment.Capabilities;
import io.quarkus.deployment.Feature;
import io.quarkus.deployment.IsTest;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.ApplicationInfoBuildItem;
Expand Down Expand Up @@ -75,7 +76,7 @@ public EnabledKubernetesDeploymentTargetsBuildItem enabledKubernetesDeploymentTa
return new EnabledKubernetesDeploymentTargetsBuildItem(entries);
}

@BuildStep
@BuildStep(onlyIfNot = IsTest.class)
public void build(ApplicationInfoBuildItem applicationInfo,
OutputTargetBuildItem outputTarget,
PackageConfig packageConfig,
Expand All @@ -92,9 +93,6 @@ public void build(ApplicationInfoBuildItem applicationInfo,

List<ConfiguratorBuildItem> allConfigurators = new ArrayList<>(configurators);
List<DecoratorBuildItem> allDecorators = new ArrayList<>(decorators);
if (launchMode.getLaunchMode() == LaunchMode.TEST) {
return;
}

if (kubernetesPorts.isEmpty()) {
log.debug("The service is not an HTTP service so no Kubernetes manifests will be generated");
Expand Down

0 comments on commit 33364c8

Please sign in to comment.