-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fix(config-reloader): use distinct port name for init container to av… #7904
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
fix(config-reloader): use distinct port name for init container to av… #7904
Conversation
…oid duplicate port name warnings (prometheus-operator#7903) Signed-off-by: Suresh Krishnan V <suresh@atatus.com>
… avoid duplicate warnings Signed-off-by: Suresh Krishnan V <suresh@atatus.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling this! It looks like the change breaks the end-to-end tests. I'd recommend running your changes locally with the scripts/run-external.sh
as explained in
https://github.com/prometheus-operator/prometheus-operator/blob/main/TESTING.md#end-to-end-tests
The CI run saves diagnostic artifacts (e.g. logs and cluster resources) so you might get some insights downloading the zip file and checking the operator's logs. ![]() |
@sureshkrishnan-atatus would you need some help on this PR? |
yes sure i have tried but it fails again and again i don't know why |
Looking at https://github.com/prometheus-operator/prometheus-operator/actions/runs/17715943067/artifacts/4007464859 the status of the Prometheus resource says
We need to use a shorter port name, maybe |
yeah that would be great i will check with that |
…oid duplicate port name warnings Signed-off-by: Suresh Krishnan V <suresh@atatus.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Glad you managed to make your first contribution to the project 🎉
d4e4529
into
prometheus-operator:main
This PR fixes warnings about duplicate port names between the config-reloader and init-config-reloader containers.
Currently, both containers expose a port named reloader-web. With Kubernetes v1.34, the client-go library surfaces this as a warning:
Warning: duplicate port name "reloader-web" between init and regular containers
To resolve this, the init container now uses a distinct port name (reloader-init) while keeping a different port number (8081).
This avoids name clashes without affecting services, probes, or existing functionality (which rely on the regular container’s reloader-web port).
Closes: #7903
Type of change :
BUGFIX (non-breaking change which fixes an issue)
Changelog entry
[BUGFIX] Use distinct port name for init container to avoid duplicate port name warnings.