[DO-21] pod template for android build (#26)
Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/26 Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Co-committed-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
This commit is contained in:
committed by
Aleksandr Vodyanov
parent
6e23532e96
commit
4ed05c334a
@@ -116,6 +116,38 @@ Object containerAuroraTemplate = """
|
|||||||
- name: ${env.JENKINS_K8S_HARBOR_SECRET}
|
- name: ${env.JENKINS_K8S_HARBOR_SECRET}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Object containerLinuxTemplate = """
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
container.apparmor.security.beta.kubernetes.io/linux: unconfined
|
||||||
|
seccomp.security.alpha.kubernetes.io/linux: unconfined
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: linux
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- SYS_ADMIN
|
||||||
|
image: ${env.JENKINS_DOCKER_REGISTRY}/container/container-build-linux:1.2
|
||||||
|
command:
|
||||||
|
- sleep
|
||||||
|
args:
|
||||||
|
- 99d
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 30
|
||||||
|
memory: 256Gi
|
||||||
|
requests:
|
||||||
|
cpu: 30
|
||||||
|
memory: 64Gi
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: ${env.JENKINS_K8S_HARBOR_SECRET}
|
||||||
|
"""
|
||||||
|
|
||||||
Object sonarCubeScannerTemplate = """
|
Object sonarCubeScannerTemplate = """
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
@@ -175,6 +207,8 @@ Object tavroLinuxTemplate = """
|
|||||||
return tavroAuroraV5Template
|
return tavroAuroraV5Template
|
||||||
case 'containerAurora':
|
case 'containerAurora':
|
||||||
return containerAuroraTemplate
|
return containerAuroraTemplate
|
||||||
|
case 'containerLinux':
|
||||||
|
return containerLinuxTemplate
|
||||||
case "sonarCubeScanner":
|
case "sonarCubeScanner":
|
||||||
return sonarCubeScannerTemplate
|
return sonarCubeScannerTemplate
|
||||||
case 'tavroLinux':
|
case 'tavroLinux':
|
||||||
|
|||||||
Reference in New Issue
Block a user