-
Notifications
You must be signed in to change notification settings - Fork 374
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: (helm) service template now respects defined port and is only templated if prometheus is enabled #101
Conversation
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.
Hi @rafaribe and thank you for the PR. I got a small comment, but good catch!
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!
@rafaribe Please squash the commits into one and sign-off the resulting commit (see https://docs.cilium.io/en/v1.11/contributing/development/contributing_guide/#developer-s-certificate-of-origin). |
181df2c
to
1af8247
Compare
There you go. |
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!
There seem to be two errors in the static checks:
I don't understand why the |
I've issued the commit again using |
Ah, thanks! above seems to fix the signing issue. Could you also change the commit message so that the first line it's shorter? How about:
|
template now respects defined prometheus port (tetragon.prometheus.port) value. Also, it only adds the service if prometheus is enabled (tetragon.prometheus.enabled). Signed-off-by: Rafael Ribeiro <rafael.ntw@gmail.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.
Awesome, thank you!!
I've noticed that the service port as defined in
values.yaml
is not respected. As such I created a pull request to respect the value and, by doing so, noticed that the service is only used for metrics. Therefore the service can also be only templated ifprometheus.enabled
istrue
.Let me know if anything is wrong.