Pydantic type representing meta Duration
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
Rechercherichtung
Start by reading the Pydantic custom resource support added in release 37 and the existing functions in kubernetes.util.duration. Identify how custom types are serialized and deserialized through model_dump/model_verify and the CustomObjectsApi. Done means a Pydantic type can represent metav1.Duration across that path, with type hints for the duration functions.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What is the feature and why do you need it:
The Pydantic dependency in 37.0.0 made it possible to define custom models to represent custom resources.
In release 37 a Pydantic model representing custom objects can be defined and via model_dump/model_verify can be passed through the CustomObjectsApi.
A number of these use types not available in the K8s API such a metav1.Duration such as in Velero. This gets serialized to and from openapi spec string to the struct by golang and as such cannot be easily handled via openapi spec.
Before the Pydantic incorporation in 37 there was not a possibility to add in custom models compatible with the Python k8s client parser.
Describe the solution you'd like to see:
A Pydantic meta Duration type that serializes/deserializes such an object.
Typehinting of the kubernetes.util.duration functions.
- Vorherrschende Sprache
- Python
- Sterne
- 7.7k
- Forks
- 3.5k
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 25
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
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 kubernetes-client/python
-
getheaders is deprecated in urllib3 >= 2.0.0Evtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offenkind/bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
kubernetes-client/python#2280 · 18 Kommentare · 9 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Bug Report: UnicodeDecodeError when limit_bytes truncates UTF-8 mid-characterEvtl. vergeben @carterpewpew hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
kubernetes-client/python#2756 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Resolve inconsistent typing in 37.0.0 delete operationsEvtl. vergeben @tamird hat das heute übernommen. Offenkind/feature
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
kubernetes-client/python#2752 · 8 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Make async an extraEvtl. vergeben @jdork0 hat das vor 6 Tagen übernommen. Offenkind/feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
kubernetes-client/python#2739 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Growing library sizeEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenhelp wanted
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
kubernetes-client/python#2677 · 16 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in kubernetes-client/python
Ähnliche Issues
-
app: scripts status: backlog type: documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
netbox-community/netbox-scripts#68 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 91/100
marin-community/marin#10765 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
flathub/com.unity.UnityHub#230 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
namespace operations
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 63/100
EclipseFdn/open-vsx.org#14910 ·
Maintainer antworten meist innerhalb von 1 Tag