pipedv1 Kubernetes plugin: health status is not calculated for Job, Service, Ingress, PV/PVC and other built-in kinds

Abierto
#7,521 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, kubernetes
Área
devops

Línea de trabajo

Read pkg/app/pipedv1/plugin/kubernetes/provider/health_status.go and compare its health checks with pkg/app/piped/platformprovider/kubernetes/state.go. Start with the first proposed slice, Job and CronJob, and inspect the corresponding kubernetes_multicluster implementation to understand where the same behavior is needed. Done means those kinds report health instead of Unknown in both plugins; the issue proposes splitting the work into small PRs.

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

Descripción

What would you like to be added:

In pipedv1, calculateHealthStatus in pkg/app/pipedv1/plugin/kubernetes/provider/health_status.go only handles Deployment, StatefulSet, ReplicaSet, DaemonSet and Pod. Every other kind falls into the default case and is reported as Unknown ("Unimplemented or unknown resource"). The kubernetes_multicluster plugin has the same gap.
piped v0 (pkg/app/piped/platformprovider/kubernetes/state.go) already determines health for Job, CronJob, Service, Ingress, ConfigMap, Secret, PersistentVolume, PersistentVolumeClaim, ServiceAccount, Role/RoleBinding, ClusterRole/ClusterRoleBinding, Namespace and PodDisruptionBudget.

Why is this needed:

Apps that include these resources show Unknown health in the live state view even when everything is fine, and a failed Job is not shown as unhealthy.
Proposal:
Port the v0 logic in small PRs:

  1. Job and CronJob
  2. Service and Ingress
  3. PersistentVolume and PersistentVolumeClaim
  4. ConfigMap, Secret, ServiceAccount, RBAC kinds, Namespace, PodDisruptionBudget
  5. The same for kubernetes_multicluster
Lenguaje dominante
Go
Estrellas
1.4k
Forks
391
Merge medio
4 d 1 h
PR fusionados (30 d)
58

Preparar el entorno

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 pipe-cd/pipecd

Todos los issues de pipe-cd/pipecd

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.