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

オープン
#7,521 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, kubernetes
領域
devops

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Go
スター
1.4k
フォーク
391
平均マージ
4日 1時間
マージ済み PR(30日)
58

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pipe-cd/pipecd のほかの issue

pipe-cd/pipecd の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。