Can't delete namespaces from test environment

オープン
#880 コメント 22 件 リアクション 19 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
go
領域
testing

調査の方向性

ファイル名もテスト名も指定されていません。まず envtest で namespace の作成と削除を再現し、その後リソースの削除タイムスタンプと namespace のフェーズを調べてください。これにより、この動作が想定されたものかどうかを確認でき、想定外であれば削除が完了することを検証できるはずです。

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

説明

kind/feature lifecycle/frozen priority/important-longterm

I'd like to use namespaces to isolate my tests from one another. For example, I want to create a new namespace with a random name in my BeforeEach and delete it in AfterEach so that individual tests don't have to worry about cleaning up after themselves.

However, I've observed that namespace deletion doesn't work when using envtest. When I delete a namespace, the deletion timestamp on resources within that namespace remain unset, and the namespace stays in the Terminating phase seemingly forever. The latter is true even if the namespace is empty (e.g. I delete it immediately after creating it).

Is this behavior expected? Is whatever mechanism that normally executes namespace deletion missing from envtest?

主要言語
Go
スター
3k
フォーク
1.3k
平均マージ
1日 7時間
マージ済み PR(30日)
48

環境構築

はじめの一歩

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

kubernetes-sigs/controller-runtime のほかの issue

kubernetes-sigs/controller-runtime の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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