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

Aperta
#959 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@yuminn-k ci sta già lavorando.

Dal 31/10/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
49/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
63
Fork
162
Merge medio
9h 54m
PR unite (30g)
29

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluxcd/pkg

Tutte le issue di fluxcd/pkg

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.