Skip to content

fix: skip duplicate namespace updates - #21

Merged
Ladicle merged 5 commits into
mainfrom
fix-updatens
Apr 22, 2026
Merged

Ladicle merged 5 commits into
mainfrom
fix-updatens

Conversation

@Ladicle

@Ladicle Ladicle commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

why

The reloader could repeatedly show Namespace update received; scheduling restart logs even when namespace label events did not change the watched namespace set.

Fix

#20

@Ladicle
Ladicle requested a review from ianlewis April 21, 2026 02:01

@ianlewis ianlewis 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.

My understanding is that the log message appeared because we received a namespace update that had an identical list of namespace names. That should be fixed by your use of Swap.

Was there a separate issue with the timer?

Comment thread reloader.go Outdated
Comment thread reloader_test.go Outdated
Comment thread reloader_test.go Outdated
@ianlewis

Copy link
Copy Markdown
Contributor

BTW, this should fix #20

@Ladicle
Ladicle requested a review from ianlewis April 22, 2026 03:13

@ianlewis ianlewis 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.

LG!

Comment thread reloader.go Outdated
Co-authored-by: Ian Lewis <ian@ianlewis.org>
Comment thread reloader.go Outdated
Co-authored-by: Aya Igarashi <Ladiclexxx@gmail.com>
@Ladicle
Ladicle merged commit 998192d into main Apr 22, 2026
2 checks passed
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