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

[Discussion] Why is LocalCluster's id ''? #6642

Open
derek-ho opened this issue Apr 25, 2024 · 0 comments
Open

[Discussion] Why is LocalCluster's id ''? #6642

derek-ho opened this issue Apr 25, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request multiple datasource multiple datasource project

Comments

@derek-ho
Copy link
Contributor

This issue is to discuss why for the multiple datasources feature the local cluster's id is ''. When implementing multiple datasources support for the security plugin, we realized that it is easy to confuse an empty string, with not passing in a variable. From a plugin developer perspective, it would be less confusing and error prone to have a different constant for the local cluster id, for example LOCAL or something equivalent. That way, when changing all the API calls to be multiple datasource compatible the caller needs to explicitly pass in LOCAL instead of if they forgot it defaults to the local cluster silently. Maybe there is some reason that I am not aware of why this decision was made.

From what I have seen, created datasource ids follow the format similar to '35c87960-00eb-11ef-98de-c373b609f89d', so anything not matching this format should work for the id of the local cluster, right?

@derek-ho derek-ho added the enhancement New feature or request label Apr 25, 2024
@kavilla kavilla added the multiple datasource multiple datasource project label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request multiple datasource multiple datasource project
Projects
None yet
Development

No branches or pull requests

7 participants