-
Notifications
You must be signed in to change notification settings - Fork 1.6k
✨ Make webhook and metrics ports configurable in Helm chart template #4890
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -61,8 +61,9 @@ controllerManager: | |||||
tag: latest | ||||||
args: | ||||||
- "--leader-elect" | ||||||
- "--metrics-bind-address=:8443" | ||||||
- "--health-probe-bind-address=:8081" | ||||||
- "--metrics-bind-address=:{{ "{{" }} .Values.metrics.port {{ "}}" }}" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The metrics bind address argument uses port templating but should maintain the full address format. Consider using
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
- "--health-probe-bind-address=:8081"{{ if .HasWebhooks }} | ||||||
- "--webhook-port={{ "{{" }} .Values.webhook.port {{ "}}" }}"{{ end }} | ||||||
resources: | ||||||
limits: | ||||||
cpu: 500m | ||||||
|
@@ -122,13 +123,15 @@ crd: | |||||
# ControllerManager argument "--metrics-bind-address=:8443" is removed. | ||||||
metrics: | ||||||
enable: true | ||||||
port: 8443 | ||||||
{{ if .HasWebhooks }} | ||||||
# [WEBHOOKS]: Webhooks configuration | ||||||
# The following configuration is automatically generated from the manifests | ||||||
# generated by controller-gen. To update run 'make manifests' and | ||||||
# the edit command with the '--force' flag | ||||||
webhook: | ||||||
enable: true | ||||||
port: 9443 | ||||||
{{ end }} | ||||||
# [PROMETHEUS]: To enable a ServiceMonitor to export metrics to Prometheus set true | ||||||
prometheus: | ||||||
|
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.
This ports as fixed for golang in the scaffold.
We cannot change the port only for helm
That will not work if you add other port.
Also, see: #4802
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.
Thank you, ah... I see, Understood.
I'll think about it for a moment 🙇
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.
Sorry, I finally understand how KubeBuilder's scaffold works.
I believe it's now configurable with this diff.
Could you please review it again? Thank you