Replace file-based route metadata with a Revision informer
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- kubernetes, rust
調査の方向性
Start by tracing how fiber-router currently reads the lampyr-routes ConfigMap and polls its directory, then inspect the related work in #21, #22, and #61. The issue does not name source files or tests, so first locate the router's route source, Revision conversion, readiness acknowledgement, and Fiber pool handling. Done means replacing file polling with an informer-backed cache, preserving local development, readiness, and pool behavior, and covering the listed informer and identity cases.
索引モデルが issue の本文から書いたものです。
説明
Problem
fiber-router currently reads one JSON file per Revision from the lampyr-routes ConfigMap volume and reloads the directory every 500 ms. This keeps the router away from the Kubernetes API, but it introduces polling, duplicate file identities, stale files, and failure handling for projected filesystem state.
#21 and #61 harden this path so one invalid file does not block unrelated routes. That is useful during the transition, but it does not remove the underlying synchronization layer. #22 also identifies collisions in the file and pool keys.
Proposed direction
Replace the projected route files with an informer-backed cache of Knative Revisions:
- watch only the Revision data needed by
fiber-router; - derive execution mode, timeout, routing state, and identity through shared conversion and validation logic;
- update or remove one cached Revision without blocking unrelated Revisions;
- use structured, collision-free namespace and Revision identities;
- release affected Fiber pools when a Revision is removed or no longer routed; and
- keep local development behind the same route-source interface without requiring Kubernetes.
The router will need narrowly scoped RBAC to list and watch Revisions. The design must document that security trade-off before implementation.
Readiness
Replace the current ConfigMap version acknowledgement. The Revision reconciler must be able to confirm that the router observed the required state without waiting for Revision Ready and creating a readiness cycle.
Completion criteria
- The
lampyr-routesConfigMap, volume, and polling loop are removed. - Add, update, delete, and routing-state changes update the router cache and Fiber pools correctly.
- One invalid Revision does not block unrelated Revisions.
- Readiness confirms the router observed the expected Revision version without a cycle.
- Local development uses the same route-source abstraction.
- Tests cover informer restart, relist, deletion, invalid objects, and collision-free identities.
Follow-up to #21, #22, and #61.
- 主要言語
- Rust
- スター
- 3
- フォーク
- 2
- 平均マージ
- 3日 57分
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hyperlight-dev/lampyr のほかの issue
-
a-needs-info dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hyperlight-dev/lampyr#49 ·
メンテナーはふだん 4 日以内に返信
-
a-needs-info
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
hyperlight-dev/lampyr#34 ·
メンテナーはふだん 4 日以内に返信
-
Provision production AKS ingress DNS and TLS対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
hyperlight-dev/lampyr#76 ·
メンテナーはふだん 4 日以内に返信
-
a-needs-info enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
hyperlight-dev/lampyr#55 ·
メンテナーはふだん 4 日以内に返信
-
a-needs-info enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 57/100
hyperlight-dev/lampyr#54 ·
メンテナーはふだん 4 日以内に返信
hyperlight-dev/lampyr の issue をすべて見る
似ている issue
-
bug P2: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
-
tests
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
vfarcic/dot-agent-deck#2512 ·
メンテナーはふだん 1 日以内に返信