layer1: fix newdeploy namespace parity step 5

This commit is contained in:
Naeel
2026-04-26 09:35:39 +03:00
parent 56a499a59f
commit 94f26b69ee
2 changed files with 34 additions and 0 deletions
@@ -944,6 +944,11 @@ func (deploy *NewDeploy) AddNamespace(ctx context.Context, ns string, mgr manage
return fmt.Errorf("AddNamespace %s (newdeploy): add function handler: %w", ns, err)
}
_, err = finformer.Core().V1().Environments().Informer().AddEventHandler(deploy.EnvEventHandlers(ctx))
if err != nil {
return fmt.Errorf("AddNamespace %s (newdeploy): add environment handler: %w", ns, err)
}
finformer.Start(ctx.Done())
ndmInformer.Start(ctx.Done())