Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Feature]: Operator readiness probe should reflect informer cache sync, not healthz.Ping

オープン 初心者向け
#3,074 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, kubernetes
領域
devops

調査の方向性

cmd/gpu-operator/main.go の255行目から始めてください。そこで mgr.AddReadyzCheck("check", healthz.Ping) が登録されています。近くで他の manager オプション(mgr.GetCache()、healthz.Checker)がどのように使われているかも確認してください。controller-runtime の healthz パッケージで Checker のシグネチャを確認し、mgr.GetCache().WaitForCacheSync が true を返すまで失敗を報告する closure に readyz チェックを置き換えてください。liveness は healthz.Ping のままにします。完了条件は、新しく起動したレプリカが informer のキャッシュ同期まで NotReady のままであり、その間も /healthz が成功し続けることです。バイナリをビルドし、可能であればロールアウト中の Pod のステータスを観察して検証してください。

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

説明

feature lifecycle/frozen needs-triage

Motivation
cmd/gpu-operator/main.go:255 registers mgr.AddReadyzCheck("check", healthz.Ping), so the operator pod reports Ready as soon as the HTTP server starts, before its informer caches have synced. Rollouts, PodDisruptionBudgets and monitoring treat a new operator replica as serving while it cannot yet reconcile.

Proposal
Register a readiness checker that fails until the manager's cache has synced, e.g. a closure calling mgr.GetCache().WaitForCacheSync with a short timeout, and keep healthz.Ping for liveness only.

主要言語
Go
スター
2.9k
フォーク
576
平均マージ
1日 9時間
マージ済み PR(30日)
78

環境構築

はじめの一歩

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

NVIDIA/gpu-operator のほかの issue

NVIDIA/gpu-operator の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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