mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-17 02:06:43 +00:00
formatted kaniko.ts
This commit is contained in:
@@ -194,7 +194,8 @@ export function kanikoPod(
|
|||||||
{
|
{
|
||||||
name: POD_VOLUME_NAME,
|
name: POD_VOLUME_NAME,
|
||||||
mountPath: '/mnt/kan',
|
mountPath: '/mnt/kan',
|
||||||
subPath: "_actions/fhammerl/container-actions-demo/main/docker-built-from-file",
|
subPath:
|
||||||
|
'_actions/fhammerl/container-actions-demo/main/docker-built-from-file',
|
||||||
readOnly: true
|
readOnly: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -213,11 +214,12 @@ export function kanikoPod(
|
|||||||
spec.dnsPolicy = 'ClusterFirst'
|
spec.dnsPolicy = 'ClusterFirst'
|
||||||
spec.restartPolicy = 'Never'
|
spec.restartPolicy = 'Never'
|
||||||
pod.spec = spec
|
pod.spec = spec
|
||||||
const claimName:string = getVolumeClaimName()
|
const claimName: string = getVolumeClaimName()
|
||||||
pod.spec.volumes = [
|
pod.spec.volumes = [
|
||||||
{
|
{
|
||||||
name: POD_VOLUME_NAME,
|
name: POD_VOLUME_NAME,
|
||||||
persistentVolumeClaim: { claimName },
|
persistentVolumeClaim: { claimName }
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
return pod
|
return pod
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user