Support native sidecar containers in the Pod builder(s)

Aperta
#1,317 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
kubernetes, rust
Ambito
tooling

Direzione di ricerca

Start in the builder code around ContainerBuilder and PodBuilder::add_init_container; the issue names both entry points and the default-resource behavior to change. Read how init containers currently receive default limits, then expose restartPolicy and make it possible to add a native sidecar without those defaults. Done means a builder-created init container can use restartPolicy: Always without the 10m CPU / 128Mi memory defaults, with builder tests covering the new path.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

The builders have no way to add a native sidecar (init container with restartPolicy: Always). ContainerBuilder doesn't expose restartPolicy, and PodBuilder::add_init_container sets default limits of 10m CPU / 128Mi memory on any init container without resources. Those defaults apparently exist for ResourceQuota support (stackabletech/issues#368) and are probably fine for one-shot init containers but also probably not for Vector et.al.

Scope

Adding a native sidecar through the builders, without the init-container resource defaults.

Expected effort

1 day. If it takes longer, stop and flag it.

Out of scope

  • Moving any existing sidecar (Vector, git-sync, ...) over to it.
  • The container-type / default-resources refactor the FIXME in add_init_container asks for.
Lingua principale
Rust
Stelle
170
Fork
20
Merge medio
2g 12h
PR unite (30g)
24

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stackabletech/operator-rs

Tutte le issue di stackabletech/operator-rs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.