ADR: CRD Versioning
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Documentazione
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- kubernetes, rust
- Ambito
- documentation
Direzione di ricerca
Inizia con la documentazione Kubernetes collegata su Versions in CustomResourceDefinitions, quindi esamina le considerazioni su conversion webhook, upgrade-only, release-skipping e CRD-size in questa issue. Un ADR è completato quando registra i fattori alla base della decisione e un'implementazione minimamente praticabile, incluso se siano richiesti two-way conversion e Rust structs copiati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Below are some prelimiary thoughts on the topic of CRD versioning, mostly taken from the on-site meeting on this topic. For an ADR, my suggestion is to gather requirements about how it should work from this Kubernetes docs page: Versions in CustomResourceDefinitions - Kubernetes Documentation. It looks like a comprehensive guide on how the versioning works.
Conversion webhooks & up- and downgrading
mutating webhooks are the core mechanism required for versioning CRDs. If an old resource is applied by the user, the webhhook will convert it into the current version. Likewise, if the users requests and older version (arbirary versions can be requested) then the webhook is also used for conversion. (Note from felix: Does that mean that two way conversion is absolutely a thing that needs to be implemented?)
When you read an object, you specify the version as part of the path. You can request an object at any version that is currently served. If you specify a version that is different from the object's stored version, Kubernetes returns the object to you at the version you requested, but the stored object is not changed on disk.
We cannot remove (mandatory) fields, because their content will be required when downgrading. This means we have to rename the fields (i.e. deprecated_oldField).
Only support upgrades for now (no downgrading)
Do not skip releases - always upgrade only one version up (v1 -> v2 -> v3 not v1 -> v3)
CRD size
CRD size is a problem: etcd and the kube API both have limits on how large objects are allowed to be.
copy & paste - To have multiple versions in our CRD, we need to keep the old rust struct around. this means copy pasting the rust struct for each verison. Not ideal ....
stabilize CRDs first to reduce conversion efforts? Would be nice beause it saves a lot of work. But CRD versioning is important now.
ADR thoughts
- What are the decision drivers?
- What could a minimally viable implementation look like?
- Lingua principale
- CSS
- Stelle
- 13
- Fork
- 14
- Merge medio
- 4g 8h
- PR unite (30g)
- 10
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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 stackabletech/documentation
-
Withdraw ADR018 Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
stackabletech/documentation#734 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
stackabletech/documentation#779 ·
-
customer-request
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
stackabletech/documentation#773 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
stackabletech/documentation#754 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
stackabletech/documentation#753 ·
Tutte le issue di stackabletech/documentation
Issue simili
-
Add: hunch Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
AbdelStark/awesome-typesafe#104 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
A11y ♿️
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Link Checker Report Apertaautomated issue report
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
documentation improve or update documentation priority/low triage
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100
warpdotdev/docs#782 · 1 commento ·