Cleanup k8s logging
							parent
							
								
									b5d0bc31a9
								
							
						
					
					
						commit
						606ee02858
					
				|  | @ -1954,7 +1954,7 @@ class Kubernetes { | ||||||
|                 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); | ||||||
|                 //run
 |                 //run
 | ||||||
|                 const jobResult = yield this.kubeClientBatch.createNamespacedJob(this.namespace, jobSpec); |                 const jobResult = yield this.kubeClientBatch.createNamespacedJob(this.namespace, jobSpec); | ||||||
|                 cloud_runner_logger_1.default.log(`Creating build job ${JSON.stringify(jobResult, undefined, 4)}`); |                 cloud_runner_logger_1.default.log(`Creating build job ${JSON.stringify(jobResult.body.metadata, undefined, 4)}`); | ||||||
|                 yield new Promise((promise) => setTimeout(promise, 5000)); |                 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)); | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -96,7 +96,7 @@ class Kubernetes implements CloudRunnerProviderInterface { | ||||||
| 
 | 
 | ||||||
|       //run
 |       //run
 | ||||||
|       const jobResult = await this.kubeClientBatch.createNamespacedJob(this.namespace, jobSpec); |       const jobResult = await this.kubeClientBatch.createNamespacedJob(this.namespace, jobSpec); | ||||||
|       CloudRunnerLogger.log(`Creating build job ${JSON.stringify(jobResult, undefined, 4)}`); |       CloudRunnerLogger.log(`Creating build job ${JSON.stringify(jobResult.body.metadata, undefined, 4)}`); | ||||||
| 
 | 
 | ||||||
|       await new Promise((promise) => setTimeout(promise, 5000)); |       await new Promise((promise) => setTimeout(promise, 5000)); | ||||||
|       CloudRunnerLogger.log('Job created'); |       CloudRunnerLogger.log('Job created'); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue