Delete of postgres resource is ignored when finalizer is used

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go, kubernetes, postgresql

調査の方向性

変更の比較と削除処理について説明されている pkg/controller/postgresql.go の 538 行目付近から始めます。DeletionTimestamp と finalizers が reconciliation にどのように影響するかを追跡し、その後、PostgreSQL リソースの削除が処理され、無視されるのではなく Delete が呼び出されることを確認します。finalizer が存在する場合に削除が機能すれば完了です。

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

説明

Please, answer some short questions which should help us to understand your problem / question better?

  • Which image of the operator are you using? e.g. ghcr.io/zalando/postgres-operator:v1.15.0
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? Bare Metal K8s
  • Are you running Postgres Operator in production? yes
  • Type of issue? Bug Report

It seems that the operator ignores changes to the DeletionTimestamp, only Spec and Annotations are compared, for Deletions DeletionTimestamp is set though, and Delete is never called, because it's actually not yet deleted:

https://github.com/zalando/postgres-operator/blob/master/pkg/controller/postgresql.go#L538

主要言語
Go
スター
5.3k
フォーク
1.1k
平均マージ
3日 17時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

zalando/postgres-operator のほかの issue

zalando/postgres-operator の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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