Replace file-based route metadata with a Revision informer
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- kubernetes, rust
- Ambito
- backend, infrastructure
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 3
- Fork
- 2
- Merge medio
- 3g 57m
- PR unite (30g)
- 17
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hyperlight-dev/lampyr
-
a-needs-info dependencies
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
hyperlight-dev/lampyr#49 ·
I maintainer di solito rispondono entro 4 giorni
-
a-needs-info
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
hyperlight-dev/lampyr#34 ·
I maintainer di solito rispondono entro 4 giorni
-
Provision production AKS ingress DNS and TLSForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
hyperlight-dev/lampyr#76 ·
I maintainer di solito rispondono entro 4 giorni
-
a-needs-info enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
hyperlight-dev/lampyr#55 ·
I maintainer di solito rispondono entro 4 giorni
-
a-needs-info enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
hyperlight-dev/lampyr#54 ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di hyperlight-dev/lampyr
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
-
tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
vfarcic/dot-agent-deck#2512 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
pop-os/cosmic-applets#1641 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pop-os/cosmic-store#650 ·