Skip to content


Browse files Browse the repository at this point in the history
fix(build): initialize ondemandKubeInitializer for custom sync server…
… in Kubernetes

This commit addresses an issue where the 'build' command was failing when using a custom synchronization server in Kubernetes. It ensures that the necessary initialization is performed, consistent with other commands, to prevent failures.

Signed-off-by: Aleksei Igrychev <>
  • Loading branch information
alexey-igrychev authored and distorhead committed Oct 6, 2023
1 parent 181474d commit e08a901
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/werf/build/main.go
Expand Up @@ -183,6 +183,11 @@ func runMain(ctx context.Context, imagesToProcess build.ImagesToProcess) error {

common.SetupOndemandKubeInitializer(*commonCmdData.KubeContext, *commonCmdData.KubeConfig, *commonCmdData.KubeConfigBase64, *commonCmdData.KubeConfigPathMergeList)
if err := common.GetOndemandKubeInitializer().Init(ctx); err != nil {
return err

if *commonCmdData.Follow {
return common.FollowGitHead(ctx, &commonCmdData, func(ctx context.Context, headCommitGiterminismManager giterminism_manager.Interface) error {
Expand Down

0 comments on commit e08a901

Please sign in to comment.