Allow a result that indicates the reconciliation is incomplete and does not trigger the exponential backoff logic
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go
調査の方向性
まず pkg/internal/controller/controller.go の214-235行付近を読み、特に RequeueAfter、Requeue、エラーがキューへの追加にどのような影響を与えるかを確認します。結果の処理と周辺の reconciliation フローを追い、不完全な結果によって再キューイングが回避される一方で、watches が今後の requests をトリガーする可能性がある箇所を特定します。明示的または指数的な Requeue を伴わない不完全な reconciliation の動作が定義され、カバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
After discussing this with @detiber, we realized there's no good solution for the following case:
- A request is received
- The request cannot proceed because of a missing dependency on resource A
- The reconciler is watching events for resource A
- The reconciler returns a result that indicates the reconciliation is incomplete due to reason X, but the request should not be requeued
Instead the current logic is:
- A reconciler is using one or more watches to trigger requests
- A request cannot proceed due to a missing dependency
- If
result.RequeueAfter > 0then the request is added to the queue for processing after the value specified byresult.RequeueAfter - If
result.Requeueistruethen the request is added to the queue with the same exponential backoff logic used when an error is returned - If an error is returned then the request is added to the queue with the exponential backoff logic
Today there is currently no way to indicate a reconciliation is incomplete without also having the request requeued by the manager either via an explicit amount of time or the exponential backoff logic (due to error or Requeue == true).
There should be a way to signal:
- The reconciliation is incomplete
- Do not requeue, the reconciler is watching the resources necessary to trigger its own events
Thanks!
- 主要言語
- Go
- スター
- 3k
- フォーク
- 1.3k
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 48
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kubernetes-sigs/controller-runtime のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kubernetes-sigs/controller-runtime#3704 ·
メンテナーはふだん 1 日以内に返信
-
lifecycle/rotten
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kubernetes-sigs/controller-runtime#3537 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
Read-your-writes consistency is not applied to unstructured objects written with Update or Patch対応中かも @7616e5a9c573ffb221843a498885ab0f が 1 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
kubernetes-sigs/controller-runtime#3702 ·
メンテナーはふだん 1 日以内に返信
-
Client and DynamicRESTMapper keep a kind's old scope after its CRD is recreated with a different `scope`対応中かも @AdamMagued が 1 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
kubernetes-sigs/controller-runtime#3671 ·
メンテナーはふだん 1 日以内に返信
-
ReadYourWrite doesn't correctly deal with mutating requests removing the last finalizer対応中かも @AdamMagued が 1 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
kubernetes-sigs/controller-runtime#3670 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
kubernetes-sigs/controller-runtime の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
expr-lang/expr#1037 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
provider-key submission
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
opentofu/registry#6740 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nightgauge/nightgauge#3713 ·
メンテナーはふだん 1 日以内に返信
-
fix: restore GitHub issue templates and check their license headers対応中かも @slievrly が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信