[DO-415] add aurora 5 template (#15)

Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/15
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
Co-committed-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
This commit is contained in:
aleksandr.vodyanov
2024-04-02 13:15:08 +03:00
committed by Aleksandr Vodyanov
parent bce332dd98
commit 1dcda96279

View File

@@ -52,6 +52,38 @@ Object auroraV4Template = """
- name: ${env.JENKINS_K8S_HARBOR_SECRET} - name: ${env.JENKINS_K8S_HARBOR_SECRET}
""" """
Object auroraV5_1Template = """
apiVersion: v1
kind: Pod
metadata:
annotations:
container.apparmor.security.beta.kubernetes.io/aurora: unconfined
spec:
containers:
- name: aurora
image: ${env.JENKINS_DOCKER_REGISTRY}/devops/build-aurora-image:5.1.0.24
securityContext:
runAsUser: 1000
runAsGroup: 1000
capabilities:
add:
- SYS_ADMIN
tty: true
resources:
limits:
cpu: 15
memory: 128Gi
requests:
cpu: 15
memory: 32Gi
volumeMounts:
- mountPath: ${global.AURORA_CUSTOM_WORKSPACE} # Because home path removed within chroot
name: "workspace-volume"
ttyEnabled: true
imagePullSecrets:
- name: ${env.JENKINS_K8S_HARBOR_SECRET}
"""
Object sonarCubeScannerTemplate = """ Object sonarCubeScannerTemplate = """
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
@@ -82,6 +114,8 @@ Object sonarCubeScannerTemplate = """
return alpineTemplate return alpineTemplate
case 'auroraV4': case 'auroraV4':
return auroraV4Template return auroraV4Template
case 'auroraV5_1':
return auroraV5_1Template
case "sonarCubeScanner": case "sonarCubeScanner":
return sonarCubeScannerTemplate return sonarCubeScannerTemplate
} }