Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

fix(kubernetes): missing `kubernetes_kind` or `attribute_path` errors are dropped

Abierto Apto para principiantes
#404 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Ankit-cs ya está trabajando en esto.

Desde el 15/10/2026.

  • #413 de @Ankit-cs — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
kubernetes, python
Área
backend

Línea de trabajo

Empieza en src/tirith/providers/kubernetes/handler.py, donde get_value devuelve los resultados "kubernetes_kind must be provided" y "attribute_path must be provided" en lugar de añadirlos a outputs, y provide() descarta el valor de retorno. Reproduce con la llamada que aparece en el issue y luego añade una prueba en tests/providers/kubernetes/ que espere un resultado con el err correspondiente por cada argumento faltante. Está terminado cuando ambos casos devuelvan ese error y pytest tests/ pase.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug good first issue hacktoberfest
Problem

In src/tirith/providers/kubernetes/handler.py, get_value returns the "kubernetes_kind must be provided" and "attribute_path must be provided" results instead of appending them to outputs. provide() ignores the return value, so it returns [] and the policy author never sees the error.

To reproduce:

from tirith.providers.kubernetes.handler import provide
provide({"operation_type": "attribute", "attribute_path": "spec"}, [{"kind": "Pod", "spec": {}}])
# -> []
What to change

Append both error results to outputs (as the "kind is not found" branch already does) and return.

Done when

A new test in tests/providers/kubernetes/ calls provide() without each argument and gets one result carrying the matching err.


Comment to claim this issue and wait to be assigned. Unclaimed or inactive for 3 days, it returns to the pool. Run pytest tests/ and black --line-length 120 before opening the PR.

Lenguaje dominante
Python
Estrellas
170
Forks
46
Merge medio
1 d 20 h
PR fusionados (30 d)
9

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de StackGuardian/tirith

Todos los issues de StackGuardian/tirith

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.