Added more proper waiting mechanism.

This commit is contained in:
rony5394
2026-05-24 13:13:27 +02:00
parent 778bab644f
commit ef37f17378
3 changed files with 56 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ import (
"encoding/json"
"errors"
"os"
"time"
"github.com/docker/docker/api/types/registry"
);
@@ -24,6 +25,7 @@ type Config struct {
HelperServiceName string
StorageContainerName string
PrepullImageServiceName string
ServiceScaleTimeout time.Duration
}
}
@@ -45,6 +47,7 @@ func GetConfig()(Config, error){
cfg.Constants.HelperServiceName = "blazenaHelper";
cfg.Constants.StorageContainerName = "blazenaStorage";
cfg.Constants.PrepullImageServiceName = "blazenaPrepull";
cfg.Constants.ServiceScaleTimeout = time.Second * 15;
err = json.Unmarshal(rawConfig, &cfg);