Pydantic type representing meta Duration
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 7.7k
- 派生
- 3.5k
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 25
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kubernetes-client/python 的其他 Issue
-
getheaders is deprecated in urllib3 >= 2.0.0可能重新可做 关联的 PR 已关闭且未合并。 未关闭kind/bug
难度 1/5 1 小时以内 新手友好度 68/100
kubernetes-client/python#2280 · 18 条评论 · 9 个 reaction ·
维护者通常 1 天内回复
-
Bug Report: UnicodeDecodeError when limit_bytes truncates UTF-8 mid-character可能已有人在做 @carterpewpew 于 4 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 68/100
kubernetes-client/python#2756 · 1 条评论 ·
维护者通常 1 天内回复
-
Resolve inconsistent typing in 37.0.0 delete operations可能已有人在做 @tamird 于 2 天前认领。 未关闭kind/feature
难度 4/5 3-5 天 新手友好度 55/100
kubernetes-client/python#2752 · 8 条评论 ·
维护者通常 1 天内回复
-
Make async an extra可能已有人在做 @jdork0 于 8 天前认领。 未关闭kind/feature
难度 2/5 1-3 小时 新手友好度 55/100
kubernetes-client/python#2739 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Growing library size可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭help wanted
难度 5/5 一周以上 新手友好度 35/100
kubernetes-client/python#2677 · 16 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 kubernetes-client/python 的全部 Issue
相似的 Issue
-
getchaintips leaves out the active tip once a header is staged on it, where Core always lists it未关闭
难度 2/5 1-3 小时 新手友好度 88/100
btclib-org/btclib-node#2158 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
dbt-msft/dbt-sqlserver#897 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
Gathin23/cleanyourtv#2770 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
vllm-project/vllm#64845 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
dekobon/big-code-analysis#1729 ·
维护者通常 1 天内回复