ADR: CRD Versioning
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Dokumentation
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- kubernetes, rust
- Bereich
- documentation
Rechercherichtung
Beginne mit der verknüpften Kubernetes-Dokumentation zu Versions in CustomResourceDefinitions und prüfe anschließend die Überlegungen zu conversion webhook, upgrade-only, release-skipping und CRD-size in diesem Issue. Ein ADR ist abgeschlossen, wenn es die Entscheidungsfaktoren und eine minimal funktionsfähige Implementierung festhält, einschließlich der Frage, ob two-way conversion und kopierte Rust-Structs erforderlich sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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?
- Vorherrschende Sprache
- CSS
- Sterne
- 13
- Forks
- 14
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 29
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus stackabletech/documentation
-
Withdraw ADR018Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
stackabletech/documentation#734 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
stackabletech/documentation#779 ·
Maintainer antworten meist innerhalb von 1 Tag
-
customer-request
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
stackabletech/documentation#773 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
stackabletech/documentation#754 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
stackabletech/documentation#753 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in stackabletech/documentation
Ähnliche Issues
-
sync-en
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 2 Tagen
-
external
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
langchain-ai/docs#6255 ·
Maintainer antworten meist innerhalb von 1 Tag
-
detectors enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
SM260845/readme-gen#1 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
angular/angularfire#3774 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Lychee link check failedOffengood first issue help wanted opensource september
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100