fluxninja / aperture

Rate limiting, caching, and request prioritization for modern workloads
https://docs.fluxninja.com
Apache License 2.0
622 stars 24 forks source link

Add object storage persistence to dist-cache #3057

Closed kklimonda-fn closed 9 months ago

kklimonda-fn commented 9 months ago

Description of change

Checklist

Summary by CodeRabbit

Please note that these release notes are a high-level summary and additional details may be found in the full release documentation.

coderabbitai[bot] commented 9 months ago

Walkthrough

The overarching change revolves around the integration of object storage into an existing system. This integration includes the addition of configuration options, modification of existing structures and functions to accommodate object storage, and the introduction of new types and metrics to handle persistent caching. The updates span across various components, enhancing the system's capability to interact with object storage backends.

Changes

File Path Change Summary
.github/styles/.../accept.txt Added "exat" to accepted vocabulary
cmd/aperture-agent/.../agent.go Imported objectstorage, added annotation and invocation for object storage
docs/content/.../agent.md Added object_storage configuration section
operator/api/.../agent_types.go Added ObjectStorage field to AgentConfigSpec struct
operator/api/.../zz_generated.deepcopy.go Updated DeepCopyInto method to include ObjectStorage
operator/controllers/.../config_test.tpl
operator/controllers/.../configmaps_test.go
Added object storage configuration in tests
pkg/dist-cache/.../*.go Reformatted metrics labels, added object storage to DistCache, and modified related functions
pkg/metrics/schema.go Introduced new metrics for persistent caching
pkg/objectstorage/.../*.go Added various object storage related types, functions, and constants
pkg/rate-limiter/.../global-token-bucket.go
pkg/config/.../*.go
Minor updates and comment formatting changes

🐇✨ To store our data wide and far, We've woven object storage into our bazaar. Buckets, keys, and persistent cache, Our system's grown with quite the dash! 🎉 🐇✨


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - You can directly reply to a review comment made by CodeRabbit. Example: - _I pushed a fix in commit ``._ - You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging `@coderabbitai` in a comment. Examples: - _@coderabbitai generate unit tests for this file_ - _@coderabbitai modularize this function_ - You can tag `@coderabbitai` in a PR comment and ask questions about the PR and the codebase. Use quoted replies to pass the context for follow-up questions. Examples: - _@coderabbitai render interesting statistics about this repository as a table_. - _@coderabbitai show all the `console.log` statements in this repository_. - _@coderabbitai generate unit tests for the `src/utils.ts` file_. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json` ### CodeRabbit Discord Community Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback.
kwapik commented 9 months ago

image