Skip to content

Commit

Permalink
return fix #11559;
Browse files Browse the repository at this point in the history
  • Loading branch information
Yelzhasdev committed Apr 2, 2022
1 parent d98bb19 commit 47144cd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ public List<DecoratorBuildItem> createDecorators(ApplicationInfoBuildItem applic
result.add(new DecoratorBuildItem(OPENSHIFT, new ApplyContainerImageDecorator(name, i.getImage())));
});

if (!capabilities.isPresent(Capability.CONTAINER_IMAGE_S2I)) {
result.add(new DecoratorBuildItem(OPENSHIFT, new RemoveDeploymentTriggerDecorator()));
}

config.getContainerName().ifPresent(containerName -> {
result.add(new DecoratorBuildItem(OPENSHIFT, new ChangeContainerNameDecorator(containerName)));
result.add(new DecoratorBuildItem(OPENSHIFT, new ChangeContainerNameInDeploymentTriggerDecorator(containerName)));
Expand Down

0 comments on commit 47144cd

Please sign in to comment.