lint fmt
This commit is contained in:
@@ -228,7 +228,7 @@ export function createContainerSpec(
|
|||||||
container['environmentVariables'] || {}
|
container['environmentVariables'] || {}
|
||||||
)) {
|
)) {
|
||||||
if (value && key !== 'HOME') {
|
if (value && key !== 'HOME') {
|
||||||
podContainer.env.push({ name: key, value: value as string })
|
podContainer.env.push({ name: key, value: value })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import {
|
|||||||
getSecretName,
|
getSecretName,
|
||||||
getStepPodName,
|
getStepPodName,
|
||||||
getVolumeClaimName,
|
getVolumeClaimName,
|
||||||
JOB_CONTAINER_NAME,
|
|
||||||
RunnerInstanceLabel
|
RunnerInstanceLabel
|
||||||
} from '../hooks/constants'
|
} from '../hooks/constants'
|
||||||
import {
|
import {
|
||||||
@@ -362,7 +361,8 @@ export async function pruneSecrets(): Promise<void> {
|
|||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
secretList.items.map(
|
secretList.items.map(
|
||||||
secret => secret.metadata?.name && deleteSecret(secret.metadata.name)
|
async secret =>
|
||||||
|
secret.metadata?.name && deleteSecret(secret.metadata.name)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -478,7 +478,9 @@ export async function prunePods(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
podList.items.map(pod => pod.metadata?.name && deletePod(pod.metadata.name))
|
podList.items.map(
|
||||||
|
async pod => pod.metadata?.name && deletePod(pod.metadata.name)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -528,7 +530,7 @@ export async function isPodContainerAlpine(
|
|||||||
podName,
|
podName,
|
||||||
containerName
|
containerName
|
||||||
)
|
)
|
||||||
} catch (err) {
|
} catch {
|
||||||
isAlpine = false
|
isAlpine = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -650,7 +652,7 @@ export function containerPorts(
|
|||||||
return ports
|
return ports
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getPodByName(name): Promise<k8s.V1Pod> {
|
export async function getPodByName(name: string): Promise<k8s.V1Pod> {
|
||||||
return await k8sApi.readNamespacedPod({
|
return await k8sApi.readNamespacedPod({
|
||||||
name,
|
name,
|
||||||
namespace: namespace()
|
namespace: namespace()
|
||||||
|
|||||||
Reference in New Issue
Block a user