Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Map instead of Set to store namespaces #19

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

f1ames
Copy link
Contributor

@f1ames f1ames commented Nov 6, 2023

This PR fixes an issue with storing namespaces. Since Set was used, deletion did not work because object used as key was different for delete event (object reference). As a result when namespace was deleted from the cluster, it was not propagated by synchronizer and outdated list of namespaces was used.

I changed it to Map to have namespace names as key.

Changes

  • None.

Fixes

  • As above.

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Copy link
Contributor

@murarustefaan murarustefaan left a comment

Choose a reason for hiding this comment

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

LGTM, but what operator is that !.?

@f1ames f1ames merged commit 5573d1d into main Nov 6, 2023
17 checks passed
@f1ames f1ames deleted the f1ames/fix/namespace-delete branch November 6, 2023 13:17
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