Skip to content

global cache not used when watchNamespaces is empty in the helm values - #663

Merged
SyedaFatimaKazmi merged 4 commits into
stakater:masterfrom
Mahagon:fix_namespace_cache
Apr 2, 2026
Merged

global cache not used when watchNamespaces is empty in the helm values#663
SyedaFatimaKazmi merged 4 commits into
stakater:masterfrom
Mahagon:fix_namespace_cache

Conversation

@Mahagon

@Mahagon Mahagon commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

When watchNamespaces is set to an empty string, the controller fails to list pods in specific namespaces with:

"route-wrapper","msg":"List Pods of service[] error:unable to list:  because of unknown namespace for the cache"

DefaultNamespaces was always populated, including with {"": {}} when WATCH_NAMESPACE was empty.
Added Unit tests for it (hope the path is fine for you)

Also fixed a path in the CONTRIBUTING.md while i was on it.


btw the last version push failed:
https://github.com/stakater/IngressMonitorController/actions/runs/23251348418/job/67688512380#step:12:45

It seems the uptimerobot test fails, can't really test it as i just got Statuscake.

Mahagon added 3 commits March 26, 2026 09:21
Signed-off-by: Mahagon <874007+Mahagon@users.noreply.github.com>
Signed-off-by: Mahagon <874007+Mahagon@users.noreply.github.com>
…ing guide

Signed-off-by: Mahagon <874007+Mahagon@users.noreply.github.com>
@SyedaFatimaKazmi SyedaFatimaKazmi added the ok-to-test Run tests in PR workflows label Apr 1, 2026
Comment thread cmd/main.go
Signed-off-by: Mahagon <874007+Mahagon@users.noreply.github.com>
@SyedaFatimaKazmi SyedaFatimaKazmi added ok-to-test Run tests in PR workflows and removed ok-to-test Run tests in PR workflows labels Apr 2, 2026
@SyedaFatimaKazmi
SyedaFatimaKazmi merged commit 9d30cd1 into stakater:master Apr 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Run tests in PR workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants