-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't seem to override the use of project.artifactId as the application reference in the deployment descriptor #273
Comments
Looks like ProjectLabelEnricher which is responsible for adding these selector doesn't support customizing them in the configuration: I think we should add some more configuration options in enricher config which can be used to customize generated selector labels: |
N
Nice rohanKanojia. That explains why it doesn't work for me :-) |
@TueDissingWork : Would you like to submit a PR to add options in |
@rohanKanojia Sure. Why not, but it will not be in the foreseeable future, as vacation time hits now. |
np, We would take this up in coming sprint |
Blocked by #248 |
just merged back all changes from master, and now I can't bulid the project.
Any advise on how to move past these checkers? |
Compare your pom files with the master branch to see diffs. It seems that some dependencies are colliding. Did your branch include any changes to pom.xml files? |
no changes to pom. manually skipping the enforcer for now. Will compare pom. |
|
That's really weird. Try with |
|
Just performed a fresh checkout of master, but still can't build the project. Same error in Common Maven. |
Since poms are configured to ignore snapshots since the 3rd of June, myabe something got there in the middle. |
Hhmmm, no difference either. I can work for now. Let's address this if its still a problem when I'm ready with some code. If others can build, then it must be something at my end. |
Can anyone point me to where I need to update the documentation, to make sure this new parameter gets documeted. |
I want to add some tests to the written code, but can't seem to figure out where the Is there a good example that I can look at? |
It appears that ProjectLabelEnricher doesn't have any test right now. You can have a look at tests for this package: |
OK. Thanks. |
So basically, you want to assert stuff inside |
I found an example of the project label parameter, so it ended up being super simple. I naturally forgot to sign off my commits :-( so now I'm fighting Git to let me change only my own commit messages. |
Maybe you could use |
Need to use git rebase...but yes the |
Description
This is likely just a configuration issue, but can't figure it out. Hence this ticket.
As part of our build we would like to control the application reference use across the different files generated from the resource goal.
Here's an example:
The plugin doesn't seem to let us control the
spec:selector:app
reference - at least I can't figure out how. This defaults to theproject.artifactId
. This makes sense,, but we would like to have it a difference value, in order for us to deploy our application in different version; within the same namespace (running on OpenShift). Any way we could add the version or some other property to this string?What happens now is that we get different applications deployed, but they seem to share their individual services and routes between them. Which isn't what we are looking for.
So how can we control the value ending up in the .yaml files under
spec:selector:app
?Info
mvn -v
) :The text was updated successfully, but these errors were encountered: