DO-1466--append_aurora_pod_templates (#53)
[DO-1466] Co-authored-by: Boris Shestov <boris.shestov@avroid.tech> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/53 Reviewed-by: Aleksandr Vodyanov <aleksandr.vodyanov@avroid.team>
This commit is contained in:
@@ -272,4 +272,39 @@ class PodTemplates implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
public void containerAurora(imageVersion='5.1.0.100-2', body) {
|
||||
this.script.podTemplate(
|
||||
runAsUser: "1000",
|
||||
runAsGroup: "1000",
|
||||
cloud: this.cloud,
|
||||
imagePullSecrets: this.dockerCreds,
|
||||
containers: [
|
||||
this.script.containerTemplate(
|
||||
alwaysPullImage: true,
|
||||
name: 'aurora',
|
||||
privileged: true,
|
||||
image: "${this.registry}/container/container-build-aurora:${imageVersion}",
|
||||
ttyEnabled: true,
|
||||
command: "cat",
|
||||
resourceRequestCpu: '15',
|
||||
resourceRequestMemory: '32Gi',
|
||||
resourceLimitCpu: '15',
|
||||
resourceLimitMemory: '128Gi',
|
||||
),
|
||||
],
|
||||
annotations: [[
|
||||
key: 'container.apparmor.security.beta.kubernetes.io/aurora',
|
||||
value: 'unconfined'
|
||||
]],
|
||||
showRawYaml: false,
|
||||
volumes: [
|
||||
this.script.emptyDirVolume(memory: false, mountPath: '/tmp'),
|
||||
],
|
||||
workspaceVolume: this.script.emptyDirWorkspaceVolume(false),
|
||||
)
|
||||
|
||||
{
|
||||
body.call()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user