-
Notifications
You must be signed in to change notification settings - Fork 503
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
Disabled ports are still enabled in the generated service #1353
Comments
Hmm, we do have a check for checking if port is enabled: Maybe some issue with your values.yaml? Are you using as a subchart? Could you share it? |
I'm just using the latest chart off of the releases with the settings above (other settings are present that I would need to redact when I am at my work machine next, but it shouldn't impact this looking at the logic). No other modifications are present. |
I tried to reproduce this but wasn't able to with your provided values. Values
Command:
That gave me the following k8s service:
As you can see, no ports were generated. |
i am unable to produce this issue locally as well. are you still running into this @ascopes ? |
I will have to check next week when I am at my work machine! I will let you know. |
Looks like it is working now... that is really bizarre! Thanks for the support. |
I have the following configuration:
From this, I'd expect these ports to be totally disabled and not configured. This is backed up by the Helm configuration for this:
service.yaml
_config.tpl
However, upon running with
service.enabled: true
, I can see that these disabled ports are still being marked as exposed on the generated Service resource:The config is being pulled in from my values.yaml as adding new ports still shows up in this list as expected.
The redacted IP addresses in this case are being allocated via my network CNI plugin, thus are being allocated externally-facing IP addresses on my network running my cluster, which is not desired behaviour.
The text was updated successfully, but these errors were encountered: