-
Notifications
You must be signed in to change notification settings - Fork 202
Environment specific OpenShift resources with some profile selection #729
Comments
f-m-p's profile feature is currently only for selecting Generators, Enrichers and their configuration. It's not for selecting a set of resource fragments. Currently for you to have this would be to use a different Would this solution with different resourceDirs help in your scenario ? |
you could use a maven profile to add test dependencies for tests (e.g. adding test secrets or whatever) |
We have the same issue as reported here. Regarding the above comment from @rhuss: |
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! |
I think having a way to specify multiple resource directories make still sense. This should be evaluated again when we are restructuring the fabric8 src directory to hold more flexible configuration. |
…n be selected depending on environment
Description
I am trying to get a project set up where I can use the f-m-p to generate deployment controllers that are structurally different from environment to environment. I would like to have one layout in test without secrets in volumes, and then one prod with secrets mounted in volumes.
I am using resource fragments under src/main/fabric8 and am trying to use the fabric8 profiles and also some Maven profiles, but what ever I try of combinations I end up with getting resources generated from all my resource fragments regardless of how I structure them.
I am trying to place the different resource fragments under environment specific subdirectories:
src/main/fabric8/prod
src/main/fabric8/test
and was hoping I could then select one of these "profiles" with either a Maven profile pointing to only one fabric8 profile or some other trick.
Is this not something that is supported? And if not, then is there some other means where I can have structurally different resource fragments used for different environments.
Best regards
Lars Milland
Info
f-m-p version : 3.2.8
Maven version (
mvn -v
) :Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: c:\maven
Java version: 1.8.0_60, vendor: Oracle Corporation
Java home: C:\Java\jdk1.8.0_60\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
The text was updated successfully, but these errors were encountered: