-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
✨ (go/v4): feat/fix: enhance cert-manager integration for metrics endpoints (follow-up to PR #4243) #4400
✨ (go/v4): feat/fix: enhance cert-manager integration for metrics endpoints (follow-up to PR #4243) #4400
Conversation
167e3cf
to
5e02482
Compare
5e02482
to
a53d785
Compare
2f012e8
to
fe0b824
Compare
6114658
to
7bcaf26
Compare
7bcaf26
to
323eb3e
Compare
b6ffce9
to
732a5ee
Compare
732a5ee
to
169ac65
Compare
169ac65
to
f828442
Compare
f828442
to
0fde893
Compare
442dea3
to
13d6efa
Compare
- op: add | ||
path: /spec/template/spec/containers/0/volumeMounts/- | ||
value: | ||
mountPath: /tmp/k8s-webhook-server/serving-certs | ||
name: webhook-certs | ||
readOnly: true | ||
- op: add | ||
path: /spec/template/spec/containers/0/ports | ||
value: [] |
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.
we introduced it here: #4429
But when we try to have metrics or webhooks both
It will overwrite the values :-(
So, we cannot have that.
…low-up to PR kubernetes-sigs#4243) This commit is a follow-up to PR kubernetes-sigs#4243, which introduced support for using cert-manager certificates for securing the metrics endpoint and ServiceMonitor. Related to kubernetes-sigs#3871 and kubernetes-sigs#4003 Key enhancements: - Added support for configuring certificate integration via a Kustomize patch. - Introduced configurable flags for greater flexibility in customization. - Use Certwatcher to allow certificate rotation These improvements enhance usability and adaptability while maintaining compatibility with the initial implementation. As the feature has not yet been released, this update ensures a polished and user-friendly integration for upcoming releases.
13d6efa
to
7ca04b8
Compare
@@ -50,33 +50,33 @@ func (f *ManagerWebhookPatch) SetTemplateDefaults() error { | |||
return nil | |||
} | |||
|
|||
//nolint:lll | |||
// nolint:lll | |||
// nolint:lll |
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.
should it be doubled ?
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.
No should be only one :-)
good catcher
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, grzesuav, varshaprasad96 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
feat/fix: enhance cert-manager integration for metrics endpoints
This commit is a follow-up to PR #4243, which introduced support for using cert-manager certificates for securing the metrics endpoint and ServiceMonitor. Related to #3871 and #4003
Key enhancements:
This configuration provides an option for users to be production-ready.
These improvements enhance usability and adaptability while maintaining compatibility with the initial implementation. As the feature has not yet been released, this update ensures a polished and user-friendly integration for upcoming releases.