Skip to content

Conversation

ivankatliarchuk
Copy link
Contributor

@ivankatliarchuk ivankatliarchuk commented Jul 4, 2025

What does it do ?

  • when --service-type-filter is configured, disable node informer when not required

nodeInformer used in 2 places

  • v1.ServiceTypeNodePort (could be safely disabled)
    • extractNodePortTargets
    • nodesExternalTrafficPolicyTypeLocal
  • V1. ServiceTypeClusterIP -> added null check, and warning message, so that if informer is disabled but should be enabled
    • extractHeadlessEndpoints

Motivation

Fixes #3169

Follow-up:

More

  • Yes, this PR title follows Conventional Commits
  • Yes, I added unit tests
  • Yes, I updated end user documentation accordingly

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 4, 2025
@k8s-ci-robot k8s-ci-robot requested review from mloiseleur and szuecs July 4, 2025 21:19
@k8s-ci-robot k8s-ci-robot added source size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 4, 2025
…s activated

Signed-off-by: ivan katliarchuk <[email protected]>

fix(source/service): disable node informer when service type filter is activated

Signed-off-by: ivan katliarchuk <[email protected]>

fix(source/service): disable node informer when service type filter is activated

Signed-off-by: ivan katliarchuk <[email protected]>

fix(source/service): disable node informer when service type filter is activated

Signed-off-by: ivan katliarchuk <[email protected]>
@ivankatliarchuk ivankatliarchuk force-pushed the feat-disable-node-informer-service-3169 branch from 8fda513 to f1dd912 Compare July 4, 2025 21:31
@ivankatliarchuk
Copy link
Contributor Author

Hi @iameli. Not sure if you still interested in the fix. But if yes, can you confirm that this PR fixes your issue. If needed, see how to test a PR ?. This will require golang to be installed.

@mloiseleur
Copy link
Collaborator

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 11, 2025
@ivankatliarchuk
Copy link
Contributor Author

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ivankatliarchuk

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 11, 2025
@k8s-ci-robot k8s-ci-robot merged commit 1bfb970 into kubernetes-sigs:master Jul 11, 2025
14 checks passed
@ivankatliarchuk ivankatliarchuk deleted the feat-disable-node-informer-service-3169 branch July 11, 2025 20:58
troll-os pushed a commit to FiligranHQ/external-dns that referenced this pull request Aug 28, 2025
…tes-sigs#5613)

* fix(source/service): disable node informer when service type filter is activated

Signed-off-by: ivan katliarchuk <[email protected]>

fix(source/service): disable node informer when service type filter is activated

Signed-off-by: ivan katliarchuk <[email protected]>

fix(source/service): disable node informer when service type filter is activated

Signed-off-by: ivan katliarchuk <[email protected]>

fix(source/service): disable node informer when service type filter is activated

Signed-off-by: ivan katliarchuk <[email protected]>

* fix(source/service): disable node informer when service type filter is activated

Co-authored-by: Michel Loiseleur <[email protected]>

* fix(source/service): disable node informer when service type filter is activated

Signed-off-by: ivan katliarchuk <[email protected]>

---------

Signed-off-by: ivan katliarchuk <[email protected]>
Co-authored-by: Michel Loiseleur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

failed to sync *v1.Node (but I didn't request --source=node)
3 participants