WatchDog Kube
This commit is contained in:
@@ -3,6 +3,7 @@ package infrastructure
|
||||
import (
|
||||
"context"
|
||||
"oc-datacenter/conf"
|
||||
"time"
|
||||
|
||||
oclib "cloud.o-forge.io/core/oc-lib"
|
||||
"cloud.o-forge.io/core/oc-lib/tools"
|
||||
@@ -21,5 +22,7 @@ func CreateNamespace(ns string) error {
|
||||
logger.Error().Msg("CreateNamespace: failed to init k8s service: " + err.Error())
|
||||
return err
|
||||
}
|
||||
return serv.ProvisionExecutionNamespace(context.Background(), ns)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
defer cancel()
|
||||
return serv.ProvisionExecutionNamespace(ctx, ns)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user