-
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
No Ports exposed inside Deployment in case of Zero Config Dockerfile Mode #240
Comments
As a workaround, I was able to generate correct
But ideally, JKube should be smart enough to detect ports from provided Dockerfile |
Yes, this should be applicable for Service enrichers too. |
We already have a Dockerfile parser, we can easily take advantage of this to pick up the required ports. |
…Zero Config Dockerfile Mode Add ports to ImageConfiguration generated in DockerFileUtil.createSimpleDockerfileConfig by parsing contents of Dockerfile
…Zero Config Dockerfile Mode Add ports to ImageConfiguration generated in DockerFileUtil.createSimpleDockerfileConfig by parsing contents of Dockerfile
…Zero Config Dockerfile Mode Add ports to ImageConfiguration generated in DockerFileUtil.createSimpleDockerfileConfig by parsing contents of Dockerfile
…Zero Config Dockerfile Mode Add ports to ImageConfiguration generated in DockerFileUtil.createSimpleDockerfileConfig by parsing contents of Dockerfile
…Zero Config Dockerfile Mode Add ports to ImageConfiguration generated in DockerFileUtil.createSimpleDockerfileConfig by parsing contents of Dockerfile
…Zero Config Dockerfile Mode Add ports to ImageConfiguration generated in DockerFileUtil.createSimpleDockerfileConfig by parsing contents of Dockerfile
…ockerfile Mode Add ports to ImageConfiguration generated in DockerFileUtil.createSimpleDockerfileConfig by parsing contents of Dockerfile
While modifying integration test PR(eclipse-jkube/jkube-integration-tests#45), I noticed that generated resource manifest seem to be missing ports. Our Enricher API relies only on
ImageConfiguration
field to fetch ports:https://github.com/eclipse/jkube/blob/07477a232e9ed4d3441622e43fda8f1c9d8466bf/jkube-kit/enricher/api/src/main/java/org/eclipse/jkube/kit/enricher/handler/ContainerHandler.java#L164-L170
Here is an example of generated Deployment:
As you can see, there is no port being provided inside
.spec.template.spec.containers[0]
. Sadly DefaultControllerEnricher doesn't have any parameter to configure ports:https://github.com/eclipse/jkube/blob/07477a232e9ed4d3441622e43fda8f1c9d8466bf/jkube-kit/enricher/generic/src/main/java/org/eclipse/jkube/enricher/generic/DefaultControllerEnricher.java#L76-L83
Maybe we can add an option just like
DefaultServiceEnricher
:https://github.com/eclipse/jkube/blob/07477a232e9ed4d3441622e43fda8f1c9d8466bf/jkube-kit/enricher/generic/src/main/java/org/eclipse/jkube/enricher/generic/DefaultServiceEnricher.java#L85-L100
The text was updated successfully, but these errors were encountered: