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

Implement a simple data store #668

Closed
localvar opened this issue Jun 24, 2022 · 1 comment
Closed

Implement a simple data store #668

localvar opened this issue Jun 24, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@localvar
Copy link
Collaborator

Components like filters and controllers often need persistent data and share the data inside the cluster, we already have the Custom Data for this but it is too complex to use in most cases. Another way is to use the functions of the cluster package directly, but it is dangerous because it can access any data of the cluster, a wrong implemented component can easily break the whole cluster.

So we'd like to implement a simple data store that meets the below requirements:

  1. the store has its own fixed (hard-coded) key prefix
  2. when creating an instance of the store, the user needs to provide a second-level prefix.
  3. the store instances provide functions like the cluster package, for example: Get/Set/GetPrefix/SetPrefix and etc.
  4. the actual key used to access data is the two levels of prefixes and the provided key.
  5. client APIs to manage(create/update/delete/list) the data, and the egctl command need to be updated accordingly.
@localvar localvar added the enhancement New feature or request label Jun 24, 2022
@suchen-sci
Copy link
Contributor

Custom data is added now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants