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
NPE when using Service resource fragment #704
Comments
According to the OpenAPI specs and our analysis, the port (number) is a required field when defining a service. I'm assuming from your issue description that what you want is to make sure the generated port has the name you provide in the fragment. Right? If this is the case, it requires further analysis, since there are several Enrichers involved in the Service generation. |
That's right, @manusa |
…pecified Add a user friendly message to NPE whenever Service Port is not provided by user in fragment Signed-off-by: Rohan Kumar <rohaan@redhat.com>
…pecified Add a user friendly message to NPE whenever Service Port is not provided by user in fragment Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Add a user friendly message to NPE whenever Service Port is not provided by user in fragment Signed-off-by: Rohan Kumar <rohaan@redhat.com>
The rest of issue should be addressed in #367 |
Description
Info
mvn -v
) :just create a Service fragment in the
src/main/jkube/service.yml
with this content:
If it's a feature request, what is your use case :
Sample Reproducer Project : [GitHub Clone URL]
Looking at the line where the NPE is thrown: https://github.com/eclipse/jkube/blob/v1.3.0/jkube-kit/enricher/specific/src/main/java/org/eclipse/jkube/kit/enricher/specific/ServiceDiscoveryEnricher.java#L100
The plugin expects the
port
as a mandatory property in the fragment. In my case I just wanna make sure the generated Service port has the rightname
(eg.http
which is expected by the Istio Service Mesh). Theport
number is supposed to be filled automatically by the plugin.NPE log:
The text was updated successfully, but these errors were encountered: