quick tls update pods solution (#918)

Update TLS tappers when tapped pods are updated via WS.
This commit is contained in:
David Levanon
2022-03-24 15:21:56 +02:00
committed by GitHub
parent e07e04377f
commit 763b0e7362
3 changed files with 47 additions and 12 deletions

View File

@@ -24,6 +24,8 @@ func UpdateTapTargets(tls *TlsTapper, pods *[]v1.Pod, procfs string) error {
if err != nil {
return err
}
tls.ClearPids()
for _, pid := range containerPids {
if err := tls.AddPid(procfs, pid); err != nil {