-
Notifications
You must be signed in to change notification settings - Fork 202
aggregating YAMLs doesn't work for OpenShift with FMP 4.0.0 #1607
Comments
This problem affects some aggregated test we are using too. As @Ladicek said, it worked fine on 4.0.0.M2. Thanks in advance. |
Great, thanks! |
@Ladicek : Just to understand your issue. Is your issue these duplicate files in openshift/ directory:
|
The issue is that the What do you mean by "test your repository on SNAPSHOT version"? If you mean SNAPSHOT version of FMP, then just update the Just to be sure, again highlighting that the |
Also, in addition to |
Yeah, I figured that out 😆 . Testing your change now |
@Ladicek : okay, it works! . Just tested your change and it seems to generate openshift resources in openshift/ directory. But I'm wondering why they're getting generated twice |
I don't think they're generated twice. They are just copied from the |
Hm, okay |
Description
The
fmp-dependency
enricher (DependencyEnricher
class) can aggregate multiple YAMLs available on classpath. In FMP version 4.0.0, this doesn't work for OpenShift -- the aggregated files are identical to the Kubernetes YAMLs.It's probably easiest for me to explain it on an example. Steps to reproduce:
Could not resolve route: thorntail-circuit-breaker-name. Available routes: []
At this point, look into
tests/target/classes/META-INF/fabric8/
. Thekubernetes
directory andkubernetes.yml
file are OK, exactly what I'd expect. However, theopenshift
directory andopenshift.yml
file are identical tokubernetes
/kubernetes.yml
, which is definitely not what I expect. I expect the aggregate to be, well, an aggregate of the OpenShift files from thename-service
andgreeting-service
modules.This works fine in 4.0.0-M2. I was able to track the issue down to this change: 9b648cf#diff-c7c605106d3e8005f2161d83dce35592
Info
mvn -v
) :update-to-2.4.0
branch is requiredThe text was updated successfully, but these errors were encountered: