Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Got rid of ExposeEnricher #1673

Closed
wants to merge 1 commit into from
Closed

Conversation

devang-gaur
Copy link
Contributor

fixes #1374

@devang-gaur devang-gaur added pr/wip Work in Progress, do not merge jkube/pending The issue/PR has to be taken care of in JKube https://github.com/eclipse/jkube labels Jul 18, 2019
@devang-gaur devang-gaur requested a review from rhuss July 22, 2019 14:07
CHANGELOG.md Outdated
@@ -9,6 +9,9 @@ We use semantic versioning in some slight variation until our feature set has st
* The `PATCH_LEVEL` is used for regular CD releases which add new features and bug fixes.

After this we will switch probably to real [Semantic Versioning 2.0.0](http://semver.org/)
### 4.2-SNAPSHOT
Copy link
Member

Choose a reason for hiding this comment

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

Rename 4.1-SNAPSHOT and move items there

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

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

nit, You introduced wildcard imports here

String name = metadata.getName();
if (!hasRoute(listBuilder, name)) {
//if (!hasRoute(listBuilder, name)) {
Copy link
Member

Choose a reason for hiding this comment

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

remove this if not needed

@@ -105,6 +100,18 @@ private RoutePort createRoutePort(ServiceBuilder serviceBuilder) {
return routePort;
}

private boolean hasWebPort(List<ServicePort> ports) {
Copy link
Member

Choose a reason for hiding this comment

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

Why are we checking only a specific set of ports of web ports? What if user has supplied some other port rather than these ports? if he has, can we add that check here as well along with standard ports?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have followed what the expose enricher used to do.
Also, the purpose of a Route is basically to service incoming traffic..which comes through http and https only. So this set of ports looks legitimate to me.

@lordofthejars thoughts ?

Copy link
Member

Choose a reason for hiding this comment

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

I'm okay with these ports, but I'm just concerned about the case when the port is not among one of these ports

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then that simply violates http and https and it should not be accepted, imo

@rohanKanojia rohanKanojia removed the jkube/pending The issue/PR has to be taken care of in JKube https://github.com/eclipse/jkube label Nov 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr/wip Work in Progress, do not merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rethink Route/Ingress generation
2 participants