formatted kaniko.ts

This commit is contained in:
Nikola Jokic
2022-09-27 12:40:45 +02:00
parent a99346d1ab
commit 5b7b738864

View File

@@ -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
} }