Fix: k8s stops at creating secret
parent
80b618085c
commit
4f36c8baad
|
|
@ -3071,7 +3071,11 @@ class Kubernetes {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
for (let index = 0; index < 3; index++) {
|
for (let index = 0; index < 3; index++) {
|
||||||
try {
|
try {
|
||||||
cloud_runner_logger_1.default.log(`Job spec creating`);
|
cloud_runner_logger_1.default.log(`Job spec creating 1`);
|
||||||
|
yield new Promise((promise) => setTimeout(promise, 5000));
|
||||||
|
cloud_runner_logger_1.default.log(`Job spec creating 2`);
|
||||||
|
yield new Promise((promise) => setTimeout(promise, 5000));
|
||||||
|
cloud_runner_logger_1.default.log(`Job spec creating 3`);
|
||||||
yield new Promise((promise) => setTimeout(promise, 5000));
|
yield new Promise((promise) => setTimeout(promise, 5000));
|
||||||
const jobSpec = kubernetes_job_spec_factory_1.default.getJobSpec(commands, image, mountdir, workingdir, environment, secrets, this.buildGuid, this.buildParameters, this.secretName, this.pvcName, this.jobName, k8s);
|
const jobSpec = kubernetes_job_spec_factory_1.default.getJobSpec(commands, image, mountdir, workingdir, environment, secrets, this.buildGuid, this.buildParameters, this.secretName, this.pvcName, this.jobName, k8s);
|
||||||
cloud_runner_logger_1.default.log(`Job spec created`);
|
cloud_runner_logger_1.default.log(`Job spec created`);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -162,7 +162,11 @@ class Kubernetes implements ProviderInterface {
|
||||||
) {
|
) {
|
||||||
for (let index = 0; index < 3; index++) {
|
for (let index = 0; index < 3; index++) {
|
||||||
try {
|
try {
|
||||||
CloudRunnerLogger.log(`Job spec creating`);
|
CloudRunnerLogger.log(`Job spec creating 1`);
|
||||||
|
await new Promise((promise) => setTimeout(promise, 5000));
|
||||||
|
CloudRunnerLogger.log(`Job spec creating 2`);
|
||||||
|
await new Promise((promise) => setTimeout(promise, 5000));
|
||||||
|
CloudRunnerLogger.log(`Job spec creating 3`);
|
||||||
await new Promise((promise) => setTimeout(promise, 5000));
|
await new Promise((promise) => setTimeout(promise, 5000));
|
||||||
const jobSpec = KubernetesJobSpecFactory.getJobSpec(
|
const jobSpec = KubernetesJobSpecFactory.getJobSpec(
|
||||||
commands,
|
commands,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue