Skip to content

Commit 5d337ff

Browse files
committed
lint fmt
1 parent 4972708 commit 5d337ff

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

packages/k8s/src/hooks/prepare-job.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

packages/k8s/src/k8s/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
getSecretName,
99
getStepPodName,
1010
getVolumeClaimName,
11-
JOB_CONTAINER_NAME,
1211
RunnerInstanceLabel
1312
} from '../hooks/constants'
1413
import {
@@ -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()

0 commit comments

Comments
 (0)