Pydantic type representing meta Duration
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Python
- Estrelas
- 7.7k
- Forks
- 3.5k
- Merge médio
- 1d 9h
- PRs com merge (30d)
- 25
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de kubernetes-client/python
-
getheaders is deprecated in urllib3 >= 2.0.0Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertakind/bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
kubernetes-client/python#2280 · 18 comentários · 9 reações ·
Mantenedores costumam responder em até 1 dia
-
Bug Report: UnicodeDecodeError when limit_bytes truncates UTF-8 mid-characterTalvez já em andamento @carterpewpew assumiu há 5 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
kubernetes-client/python#2756 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Resolve inconsistent typing in 37.0.0 delete operationsTalvez já em andamento @tamird assumiu há 2 dias. Abertakind/feature
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
kubernetes-client/python#2752 · 8 comentários ·
Mantenedores costumam responder em até 1 dia
-
Make async an extraTalvez já em andamento @jdork0 assumiu há 8 dias. Abertakind/feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 55/100
kubernetes-client/python#2739 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Growing library sizeTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertahelp wanted
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
kubernetes-client/python#2677 · 16 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
Todas as issues de kubernetes-client/python
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
BCDA-APS/polar-bits#93 ·
-
infer_audio_type only recognises one MPEG Layer III frame header, so most MP3 files are rejectedTalvez já em andamento @Steve-20-ai assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
[BUG] - ssh_config `Match tagged` statement always appliesTalvez já em andamento @AtharvRG assumiu hoje. AbertaBug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
paramiko/paramiko#2715 · 1 comentário ·
Mantenedores costumam responder em até 9 dias
-
auto-rejected intake mcp-intake needs-salvage priority:high type:feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Ikalus1988/MisakaNet#4221 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia