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

Aperta
#7,521 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, kubernetes
Ambito
devops

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Go
Stelle
1.4k
Fork
391
Merge medio
4g 1h
PR unite (30g)
58

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pipe-cd/pipecd

Tutte le issue di pipe-cd/pipecd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.