Skip to content

cmd/k8s-operator: fix reconcile filters - #9533

Merged
irbekrm merged 1 commit into
mainfrom
irbekrm/reconciles
Sep 26, 2023
Merged

irbekrm merged 1 commit into
mainfrom
irbekrm/reconciles

Conversation

@irbekrm

@irbekrm irbekrm commented Sep 25, 2023 •

Copy link
Copy Markdown
Contributor

At the moment service and ingress reconcilers use the same filter to reconcile parent Service/parent Ingress when there is an event on a child resource. That means that if there is an event on parent Services child resource, ingress-reconciler will also get triggered and look for an Ingress with a matching name and vice versa- this means some wasted CPU cycles and confusing log messages for users.
Thsi PR fixes the reconcile filters to prevent that.

Updates #502

@irbekrm
irbekrm force-pushed the irbekrm/reconciles branch 3 times, most recently from 7436de3 to d33920d Compare September 25, 2023 17:16
Comment thread cmd/k8s-operator/operator.go Resolved
Comment thread cmd/k8s-operator/operator.go Resolved
@irbekrm

irbekrm commented Sep 25, 2023

Copy link
Copy Markdown
Contributor Author

Thanks for taking a look @maisem I've now refactored it

Comment thread cmd/k8s-operator/operator.go Resolved
Ensure that when there is an event on a Tailscale managed Ingress or Service child resource, the right parent type gets reconciled

Updates #502

Signed-off-by: Irbe Krumina <[email protected]>
@irbekrm
irbekrm merged commit bdd9eec into main Sep 26, 2023
@irbekrm
irbekrm deleted the irbekrm/reconciles branch September 26, 2023 05:09
alexelisenko pushed a commit to Control-D-Inc/tailscale that referenced this pull request Feb 15, 2024
Ensure that when there is an event on a Tailscale managed Ingress or Service child resource, the right parent type gets reconciled

Updates tailscale#502

Signed-off-by: Irbe Krumina <[email protected]>
Signed-off-by: Alex Paguis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants