Bug: `runtime/client.(*Impersonator).CanImpersonate` does not take kubeconfig into account

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

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

@yuminn-k がすでに取り組んでいます。

2026年10月31日 から。

評価

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

調査の方向性

Start with runtime/client.(*Impersonator).CanImpersonate and trace how it checks for the ServiceAccount during Kustomization finalization. Compare the current-cluster lookup with the kubeconfig case, using the linked helm-controller issue for context. Done means the method recognizes a ServiceAccount in the remote cluster when spec.kubeConfig is configured, so finalization can collect remote garbage.

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

説明

xref: https://github.com/fluxcd/helm-controller/issues/1250

This method is used by kustomize-controller during the finalization of a Kustomization to know if it can impersonate the configured spec.serviceAccountName for the operation. The method simply takes the existence of the ServiceAccount in the current cluster as the answer to this question. When spec.kubeConfig is configured, spec.serviceAccountName is supposed to exist in the remote cluster, and not in the current cluster. This means that if anybody is using both fields and the ServiceAccount does not exist in the current cluster (but correctly exists in the remote cluster), kustomize-controller does not collect the garbage in the remote cluster when the Kustomization is deleted.

主要言語
Go
スター
63
フォーク
162
平均マージ
9時間 54分
マージ済み PR(30日)
29

環境構築

はじめの一歩

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

fluxcd/pkg のほかの issue

fluxcd/pkg の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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