-
Notifications
You must be signed in to change notification settings - Fork 203
Minor changes to ImageTrigger generation #1177
Comments
We can add a flag which you can use in your build like this:
It's default value would be true(which is the behavior of fabric8 maven plugin right now). How does that sound to you? @hrishin Could you please share your thoughts on this? |
Sounds great. Though, could we rename it to setImageTriggerAutomatic (or something like that) instead of isImageTriggerAutomatic? Because it's a bit confusing when using isImageTriggerAutomatic. Will the namespace be added by default without a flag? I'm not sure if it causes any harm to the current usecases. |
It depends on whether it's specific to your use case only. But I feel that they should be given as two separate flags. I need to check if it causes any harm to default flow of fmp. |
@rohanKanojia @mojsha No issues right now. Yes keep default value to |
@rohanKanojia Any option is fine. I just need this ASAP to avoid doing my home-made "patches" on top of the releases from F-M-P. Much appreciated. |
Added fabric8.openshift.setImageTriggerAutomatic flag which would be able to enable/disable automatic deployments.
Added fabric8.openshift.setImageTriggerAutomatic flag which would be able to enable/disable automatic deployments.
Added fabric8.openshift.setDeploymentTriggerAutomatic flag which would be able to enable/disable automatic deployments.
@rohanKanojia Looks perfect! |
Added fabric8.openshift.setDeploymentTriggerAutomatic flag which would be able to enable/disable automatic deployments.
Added fabric8.openshift.setDeploymentTriggerAutomatic flag which would be able to enable/disable automatic deployments.
Added fabric8.openshift.setDeploymentTriggerAutomatic flag which would be able to enable/disable automatic deployments.
@rohanKanojia Thanks alot for your efforts! This will help us with the 3.7 upgrade/migration. Can I ask how long it will take for this to be released? |
Added fabric8.openshift.setDeploymentTriggerAutomatic flag which would be able to enable/disable automatic deployments.
Hey @mojsha We just released FMP 3.5.38. Please give it a try. Looking forward to your feedback. Thanks |
@piyush1594 @rohanKanojia I have tested the plugin and tentatively it looks like it's working as it should. I would like to thank you and in particular @rohanKanojia for all of his efforts! This has enabled us to start our journey towards OpenShift 3.7+. |
We currently have a few small requirements which has led us to do our own hacks for the F-M-P and this causes issues whenever there is an upgrade to F-M-P.
We want to use the ImageTrigger to be able to resolve the ImageStreamTag but do not want automated deployments whenever there is a new Image generated. The only way to do so is to have a "disabled" ImageTrigger, meaning automatic is set to false.
We also need to be able to specify the namespace for the ImageTrigger, so that we can refer to images in other namespaces. In our case, we have some images that are of common concern and we want to use this across all of our applications.
This is how it would look like:
I have changed the following code in DeploymentOpenShiftConverter.java:
Can these be set as options?
@rohanKanojia
The text was updated successfully, but these errors were encountered: