ADR: CRD Versioning
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Documentación
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- kubernetes, rust
- Área
- documentation
Línea de trabajo
Comienza con la documentación enlazada de Kubernetes sobre Versions in CustomResourceDefinitions y, después, revisa las consideraciones sobre conversion webhook, upgrade-only, release-skipping y CRD-size en esta issue. Un ADR está terminado cuando registra los factores que impulsan la decisión y una implementación mínimamente viable, incluida la cuestión de si se requieren two-way conversion y estructuras Rust copiadas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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?
- Lenguaje dominante
- CSS
- Estrellas
- 13
- Forks
- 14
- Merge medio
- 4 d 8 h
- PR fusionados (30 d)
- 10
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de stackabletech/documentation
-
Withdraw ADR018 Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
stackabletech/documentation#734 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
stackabletech/documentation#779 ·
-
customer-request
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
stackabletech/documentation#773 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
stackabletech/documentation#754 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
stackabletech/documentation#753 ·
Todos los issues de stackabletech/documentation
Issues similares
-
triage
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
feature pydanty:is-working
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
pydantic/pydantic-ai#8647 ·
-
Add date o "release information" Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Add more to the documentation Abierto:watch: Not Triaged dotnet-fsharp/svc
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100