File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ export function createContainerSpec(
228228 container [ 'environmentVariables' ] || { }
229229 ) ) {
230230 if ( value && key !== 'HOME' ) {
231- podContainer . env . push ( { name : key , value : value as string } )
231+ podContainer . env . push ( { name : key , value : value } )
232232 }
233233 }
234234
Original file line number Diff line number Diff line change 88 getSecretName ,
99 getStepPodName ,
1010 getVolumeClaimName ,
11- JOB_CONTAINER_NAME ,
1211 RunnerInstanceLabel
1312} from '../hooks/constants'
1413import {
@@ -362,7 +361,8 @@ export async function pruneSecrets(): Promise<void> {
362361
363362 await Promise . all (
364363 secretList . items . map (
365- secret => secret . metadata ?. name && deleteSecret ( secret . metadata . name )
364+ async secret =>
365+ secret . metadata ?. name && deleteSecret ( secret . metadata . name )
366366 )
367367 )
368368}
@@ -478,7 +478,9 @@ export async function prunePods(): Promise<void> {
478478 }
479479
480480 await Promise . all (
481- podList . items . map ( pod => pod . metadata ?. name && deletePod ( pod . metadata . name ) )
481+ podList . items . map (
482+ async pod => pod . metadata ?. name && deletePod ( pod . metadata . name )
483+ )
482484 )
483485}
484486
@@ -528,7 +530,7 @@ export async function isPodContainerAlpine(
528530 podName ,
529531 containerName
530532 )
531- } catch ( err ) {
533+ } catch {
532534 isAlpine = false
533535 }
534536
@@ -650,7 +652,7 @@ export function containerPorts(
650652 return ports
651653}
652654
653- export async function getPodByName ( name ) : Promise < k8s . V1Pod > {
655+ export async function getPodByName ( name : string ) : Promise < k8s . V1Pod > {
654656 return await k8sApi . readNamespacedPod ( {
655657 name,
656658 namespace : namespace ( )
You can’t perform that action at this time.
0 commit comments