Pydantic type representing meta Duration
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 7.7k
- Fork
- 3.5k
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 25
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kubernetes-client/python
-
getheaders is deprecated in urllib3 >= 2.0.0Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởkind/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
kubernetes-client/python#2280 · 18 bình luận · 9 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug Report: UnicodeDecodeError when limit_bytes truncates UTF-8 mid-characterCó thể đã có người làm @carterpewpew đã nhận 4 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
kubernetes-client/python#2756 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Resolve inconsistent typing in 37.0.0 delete operationsCó thể đã có người làm @tamird đã nhận 1 ngày trước. Đang mởkind/feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
kubernetes-client/python#2752 · 8 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Make async an extraCó thể đã có người làm @jdork0 đã nhận 7 ngày trước. Đang mởkind/feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
kubernetes-client/python#2739 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Growing library sizeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởhelp wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
kubernetes-client/python#2677 · 16 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kubernetes-client/python
Issue tương tự
-
Admin member of a research group cannot see the HX2 allocation until they've been added to itĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
developmentseed/titiler-cmr#278 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 2 ngày