What is the Pepr Store and when to use it
mainThe Pepr Store is a lightweight, asynchronous key-value store designed for use within Pepr Capabilities. It is specifically built to solve two problems in Kubernetes admission controllers:
- Complex/Long-running operations: It provides a way to manage state that is difficult to handle within the standard
Mutate,Validate, andWatchaction lifecycles. - Data Sharing: It allows sharing data between different actions and different replicas of the admission controller and watch controller automatically.
How it works internally: Behind the scenes, all store instances within a single Pepr Module are stored within a single Custom Resource Definition (CRD) that is automatically created when the module is deployed. To maintain performance at scale, the store uses Kubernetes watches, batch processing, and patch operations for efficient reads and writes.