Kubernetes use env var based secrets
parent
18828c059e
commit
c54883ec7c
|
|
@ -1786,6 +1786,7 @@ class Kubernetes {
|
||||||
//run
|
//run
|
||||||
cloud_runner_logger_1.default.log('Creating build job');
|
cloud_runner_logger_1.default.log('Creating build job');
|
||||||
yield this.kubeClientBatch.createNamespacedJob(this.namespace, jobSpec);
|
yield this.kubeClientBatch.createNamespacedJob(this.namespace, jobSpec);
|
||||||
|
yield new Promise((promise) => setTimeout(promise, 5000));
|
||||||
cloud_runner_logger_1.default.log('Job created');
|
cloud_runner_logger_1.default.log('Job created');
|
||||||
this.setPodNameAndContainerName(yield Kubernetes.findPodFromJob(this.kubeClient, this.jobName, this.namespace));
|
this.setPodNameAndContainerName(yield Kubernetes.findPodFromJob(this.kubeClient, this.jobName, this.namespace));
|
||||||
cloud_runner_logger_1.default.log('Watching pod until running');
|
cloud_runner_logger_1.default.log('Watching pod until running');
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -99,6 +99,7 @@ class Kubernetes implements CloudRunnerProviderInterface {
|
||||||
//run
|
//run
|
||||||
CloudRunnerLogger.log('Creating build job');
|
CloudRunnerLogger.log('Creating build job');
|
||||||
await this.kubeClientBatch.createNamespacedJob(this.namespace, jobSpec);
|
await this.kubeClientBatch.createNamespacedJob(this.namespace, jobSpec);
|
||||||
|
await new Promise((promise) => setTimeout(promise, 5000));
|
||||||
CloudRunnerLogger.log('Job created');
|
CloudRunnerLogger.log('Job created');
|
||||||
this.setPodNameAndContainerName(await Kubernetes.findPodFromJob(this.kubeClient, this.jobName, this.namespace));
|
this.setPodNameAndContainerName(await Kubernetes.findPodFromJob(this.kubeClient, this.jobName, this.namespace));
|
||||||
CloudRunnerLogger.log('Watching pod until running');
|
CloudRunnerLogger.log('Watching pod until running');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue