Skip to content

fix: target metrics patches to metrics-service only#277

Open
vitorfloriano wants to merge 1 commit into
kubernetes-sigs:mainfrom
vitorfloriano:fix-webhook-port-misconfig
Open

fix: target metrics patches to metrics-service only#277
vitorfloriano wants to merge 1 commit into
kubernetes-sigs:mainfrom
vitorfloriano:fix-webhook-port-misconfig

Conversation

@vitorfloriano

@vitorfloriano vitorfloriano commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

The Prometheus TLS patch was targetting 'Service', which was too broad and being mistakenly applied to all services, including the webhook-service, leading to a misconfig and causing errors when validating custom resources (see #276).

This PR targets the patch to the metrics-service only.

Fixes #276

/kind bug

Testing

This was manually tested by running make build-manifests-temp ENABLE_METRICS=true ENABLE_TLS=true ENABLE_WEBHOOK=true and then inspecting the generated manifest, which now features the correct config:

bin/build/manifests.yaml:

apiVersion: v1
kind: Service
metadata:
 name: nrr-webhook-service
 namespace: nrr-system
spec:
 ports:
 - name: webhook
   port: 443
   protocol: TCP
   targetPort: 9443
 selector:
   control-plane: controller-manager

Checklist

  • make test passes
  • make lint passes

Does this PR introduce a user-facing change?

Fix webhook port misconfig

Doc #278

The patch was targetting 'Service', which was too broad
and being mistakenly applied to all services, including the
webhook service, leading to a misconfig.
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jun 12, 2026
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: vitorfloriano
Once this PR has been reviewed and has the lgtm label, please assign tallclair for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for node-readiness-controller ready!

Name Link
🔨 Latest commit a729120
🔍 Latest deploy log https://app.netlify.com/projects/node-readiness-controller/deploys/6a2b741e01147f0008f1848e
😎 Deploy Preview https://deploy-preview-277--node-readiness-controller.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 12, 2026

@AvineshTripathi AvineshTripathi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for looking into this @vitorfloriano!

- path: metrics_service_tls_patch.yaml
target:
kind: Service
name: metrics-service

@AvineshTripathi AvineshTripathi Jun 12, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probaby we should add namespace(system) too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Misconfigured Port for webhook

3 participants