Skip to content
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

Prevent generating duplicate Ingress paths rules #1092

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

Sgitario
Copy link
Collaborator

@Sgitario Sgitario requested a review from iocanel October 25, 2022 10:22
@Sgitario Sgitario force-pushed the fix_duplicate_ingress branch from 19eceb3 to 6fd0f46 Compare October 25, 2022 11:46
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@iocanel iocanel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Added a comment about the use of distinct class. This is something that its good to address at some point, but not a blocker.

@@ -15,12 +15,8 @@
*/
package io.dekorate.kubernetes.decorator;

import static io.dekorate.kubernetes.decorator.AddServiceResourceDecorator.distinct;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that distinct should move to a utility class.

@Sgitario Sgitario merged commit f313e6e into dekorateio:main Nov 2, 2022
@Sgitario Sgitario deleted the fix_duplicate_ingress branch November 2, 2022 14:00
@ThoSap
Copy link

ThoSap commented Nov 9, 2022

Could it be that this did not make it into Quarkus 2.14.0.Final but quarkusio/quarkus#28813 did?
In my case, I have both RESTEasy Reactive and gRPC configured and I get duplicated ingress paths with Quarkus 2.14.0.Final.
image

If I specify the path with the property

quarkus.kubernetes.ports.http.path=/mypath

then I don't get a duplicated ingress path (I'm using this as a workaround and cool new feature in the meantime 😋).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants