Skip to content

feat: updated function to get namespace with lister - #8

Merged
mathis-marcotte merged 2 commits into
zonefrom
update-namespace-function
Jun 19, 2026
Merged

mathis-marcotte merged 2 commits into
zonefrom
update-namespace-function

Conversation

@mathis-marcotte

Copy link
Copy Markdown
Collaborator

Which issue is resolved by this Pull Request:
Resolves # https://jirab.statcan.ca/browse/ZONE-496

Description of your changes:
Changes the way the namespace value is retrieved. Instead of using a regex on the email, it now reads the role bindings and matches those to the email.
This allows a one-to-one matching for the namespace value, where as previously there could be edge cases where two emails look the same but have a different domain, which would result in the same namespace value.

The changes introduces a lister to get the rolebindings to match for the email. This lister should include a caching mechanism to improve performance when getting the rolebindings.

Requirements:

@mathis-marcotte
mathis-marcotte merged commit 00e7db3 into zone Jun 19, 2026
1 check passed
@mathis-marcotte
mathis-marcotte deleted the update-namespace-function branch June 19, 2026 12:36
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