-
Notifications
You must be signed in to change notification settings - Fork 202
4.0.0 is generating an unwanted sidecar copy of application instance #1579
Comments
Hm, this is being done via
|
@mojsha: Okay, so this enricher is creating two separate containers instead of one. So the idea of sidecar containers was to treat every container as sidecar whose name is not equal to default application container(which is generated by fmp). So if you take a resource fragment like this:
This won't generate sidecar since container name is specified and it is equal to default application container name. But if you change container name, then it would be treated as a sidecar. For example, this resource fragment would generate two containers in resulting deploymentconfig:
So if container specified in resource fragment doesn't have a name or it's name is equal to default application's container name; it would not be treated as sidecar. You can manipulate fmp's default name for main container via this parameter: I would add it to documentation to avoid confusion in future. |
Ok, it seems that it works - but now I have another problem, in that the ImageChangeTriggers are not being generated. |
I released 4.1.0 yesterday. Could you please try whether it solves your issue?
Here is a project(simlar to your setup) with which I tested this on 4.1.0: https://github.com/r0haaaan/fabric8-maven-plugin-sample-with-fragments |
@rohanKanojia Sorry for the delay. It looks like those two flags cannot be used in conjunction. I am getting the automatic field set to true. |
@mojsha : Have you tried setting these two flags as properties in pom? that worked for me |
@rohanKanojia Yes it is working for some reason if it's in the pom. I have no idea why. But we need to find out why, as I cannot roll out this version of the application without making it work 'as-is'. |
I think we should not treat
and use other flags like usual. I created an example much closer to your project configuration: https://github.com/r0haaaan/fabric8-maven-plugin-sample-with-fragments/ |
Thanks, it's working now. |
Description
It looks like 4.0.0 is "auto-generating" an unwanted sidecar copy of the application instance.
It is easiest explained using screenshots:
Using 3.5.42, the application is running in container "demo":
Using 4.0.0, two instance of the application now are running, demo (as defined in a DC) and "demo-sample-t" (a concatenation of the DC name "demo" and namespace name "sample-t"):
As you can see, the "sample-t-demo" (sample-t is the name of the namespace) has been generated without any resource fragment.
Info
4.0.0
3.10
Use a DC and upgrade to 4.0.0 and do the regular fabric8:resource fabric8:build fabric8:apply cycle. It should generate the unwanted sidecar.
@rohanKanojia
The text was updated successfully, but these errors were encountered: