-
Notifications
You must be signed in to change notification settings - Fork 202
Using its own BuildConfig when using f-m-p #1070
Comments
I'm asking myself if the plugin is really designed to have BuildConfig and ImageStream really overridable , my understanding of the lifecycle is : build > push > resource > apply > deploy > ... However, with custom yml for BuildConfig and ImageStream , we are force to do the resource > apply before the build, which somehow do unwanted deployment (deployment done before the build) unless we do tricky workaround in the deploymentConfig Either, the plugin is able to deal with pushSecret and make its own BuildConfig and ImageStream before the build, forbidding the custom yaml for BuildConfig and ImageStream explicitely when parameter buildRecreate = none, or either , we can provide custom BuildConfig and ImageStream but we need specifc goals for build like build-resource build-apply dedicated to the preparation of the build that do not make anything else than things related to the build. what is the best strategy with openshift here ? this is maybe a topic for story : Fill in the gaps and decouple (https://github.com/fabric8io/fabric8-maven-plugin/projects/1 ) where openshift has a different way to do the build. |
Actually the build itself is considered to be an implementation detail as there are some constraints. I.e. the build has to use a binary source as this is the only mode that makes sense for an S2I build with f-m-p (where Maven runs outside s2i and the builder image just assembles the image). Also share the concerns of @FlorianBois that it doesn't make sense to treat builds as regular resource objects. So for now I'd recommend to extend the configuration for the plugin to tune the s2i build. |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
@rhuss Any news for the implementation of s2i build configuration's extend ? |
@zonArt no, not yet. But we are currently reworking the whole build part to allow for a more flexible way of building images. This also affects the s2i build part, and when redoing this we should add the corresponding s2i config hooks. What's your actual use case or better, what do you want to be configurable in the build config / imagestream ? |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
@zonArt : polite ping, Could you please elaborate your use case so that we can think about it's possible integration? |
Hi, I'm not anymore working on builds with fpm for now and thus my usecase is not anymore relevant. But as far as I remember from my previous job, the need was for us to be able to configure the |
I am also interested in this. My use case would be to push the image to an external registry:
See https://blog.openshift.com/pushing-application-images-to-an-external-registry/ (Step 5) |
Ah i overlooked that. Yes #1054 would be enough for me. |
I have a similar problem. I need to change the resource constraints:
|
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
Is it a way to define its own
BuildConfig
when using f-m-p (like adding a bc.yml file in src/main/fabric8) ?Description
Got my
BuildConfig
always overridden by fabric8 plugin and would really like to tune it and use itInfo
mvn -v
) : 3.3.9openshift v1.5.1
kubernetes v1.5.2+43a9be4
having this kind of file in src/main/fabric8:
It gets overridden when executing
mvn fabric8:build
with especially annoying removal ofpushSecret
because of this:fabric8-maven-plugin/core/src/main/java/io/fabric8/maven/core/service/openshift/OpenshiftBuildService.java
Lines 179 to 182 in 9102af6
Thank you in advance for your kind help
The text was updated successfully, but these errors were encountered: