-
Notifications
You must be signed in to change notification settings - Fork 72
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
Specifying a service's port name instead of number does not work #211
Comments
@lion7 I'll look into it soon, in the meantime if you have time to make a PR will be awesome! 🤩 |
I tried to fix it yesterday, but it proves to be a challenge since I don't have a k8s client available in I would need a k8s client to retrieve the |
I tried to have a go at this, but came across the same issue as @lion7. I was able to make a helper function that returns the ingress/internal/caddy/ingress/reverseproxy.go Lines 25 to 60 in 908d854
|
I just installed a Helm chart (the Element OnPrem server to be precise) which installs the following Ingress:
Note that the service port is referenced by name and not by number. This breaks when using Caddy Ingress, which I figured would be due to the following line:
ingress/internal/caddy/ingress/reverseproxy.go
Line 34 in 908d854
Basically it just returns port
0
here because the port number should be resolved by name instead of directly using the number.@mavimo Would you be open to a PR to fix this?
The text was updated successfully, but these errors were encountered: