Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split drivers build jobs #410

Merged
merged 7 commits into from
Jun 8, 2021
163 changes: 163 additions & 0 deletions config/jobs/build-drivers/amazonlinux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
presubmits:
falcosecurity/test-infra:
- name: build-drivers-amazonlinux-presubmit
decorate: true
skip_report: false
agent: kubernetes
branches:
- ^master$
run_if_changed: '^driverkit/config/[a-z0-9]{40,}/amazonlinux_.*'
spec:
serviceAccountName: driver-kit
containers:
- command:
- /workspace/build-drivers.sh
- amazonlinux
env:
- name: AWS_REGION
value: eu-west-1
image: 292999226676.dkr.ecr.eu-west-1.amazonaws.com/test-infra/build-drivers:latest
imagePullPolicy: Always
securityContext:
privileged: true
resources:
requests:
cpu: 1500m #m5large is 2vpcu and 8gb ram so this 75% of a node
memory: 6Gi
nodeSelector:
Archtype: "x86"
- name: build-drivers-amazonlinux2-presubmit
decorate: true
skip_report: false
agent: kubernetes
branches:
- ^master$
run_if_changed: '^driverkit/config/[a-z0-9]{40,}/amazonlinux2_.*'
spec:
serviceAccountName: driver-kit
containers:
- command:
- /workspace/build-drivers.sh
- amazonlinux2
env:
- name: AWS_REGION
value: eu-west-1
image: 292999226676.dkr.ecr.eu-west-1.amazonaws.com/test-infra/build-drivers:latest
imagePullPolicy: Always
securityContext:
privileged: true
resources:
requests:
cpu: 1500m #m5large is 2vpcu and 8gb ram so this 75% of a node
memory: 6Gi
nodeSelector:
Archtype: "x86"
periodics:
- name: build-drivers-amazonlinux-periodic
decorate: true
cron: "0 03 * * 1"
extra_refs:
- org: falcosecurity
repo: test-infra
base_ref: master
agent: kubernetes
spec:
serviceAccountName: driver-kit
containers:
- command:
- /workspace/build-drivers.sh
- amazonlinux
env:
- name: AWS_REGION
value: eu-west-1
- name: PUBLISH_S3
value: "true"
image: 292999226676.dkr.ecr.eu-west-1.amazonaws.com/test-infra/build-drivers:latest
imagePullPolicy: Always
securityContext:
privileged: true
nodeSelector:
Archtype: "x86"
- name: build-drivers-amazonlinux2-periodic
decorate: true
cron: "0 03 * * 2"
extra_refs:
- org: falcosecurity
repo: test-infra
base_ref: master
agent: kubernetes
spec:
serviceAccountName: driver-kit
containers:
- command:
- /workspace/build-drivers.sh
- amazonlinux2
env:
- name: AWS_REGION
value: eu-west-1
- name: PUBLISH_S3
value: "true"
image: 292999226676.dkr.ecr.eu-west-1.amazonaws.com/test-infra/build-drivers:latest
imagePullPolicy: Always
securityContext:
privileged: true
nodeSelector:
Archtype: "x86"
postsubmits:
falcosecurity/test-infra:
- name: build-drivers-amazonlinux-postsubmit
decorate: true
skip_report: false
agent: kubernetes
branches:
- ^master$
run_if_changed: '^driverkit/config/[a-z0-9]{40,}/amazonlinux_.*'
spec:
serviceAccountName: driver-kit
containers:
- command:
- /workspace/build-drivers.sh
- amazonlinux
env:
- name: AWS_REGION
value: eu-west-1
- name: PUBLISH_S3
value: "true"
image: 292999226676.dkr.ecr.eu-west-1.amazonaws.com/test-infra/build-drivers:latest
imagePullPolicy: Always
securityContext:
privileged: true
resources:
requests:
cpu: 1500m #m5large is 2vpcu and 8gb ram so this 75% of a node
memory: 6Gi
nodeSelector:
Archtype: "x86"
- name: build-drivers-amazonlinux2-postsubmit
decorate: true
skip_report: false
agent: kubernetes
branches:
- ^master$
run_if_changed: '^driverkit/config/[a-z0-9]{40,}/amazonlinux2_.*'
spec:
serviceAccountName: driver-kit
containers:
- command:
- /workspace/build-drivers.sh
- amazonlinux2
env:
- name: AWS_REGION
value: eu-west-1
- name: PUBLISH_S3
value: "true"
image: 292999226676.dkr.ecr.eu-west-1.amazonaws.com/test-infra/build-drivers:latest
imagePullPolicy: Always
securityContext:
privileged: true
resources:
requests:
cpu: 1500m #m5large is 2vpcu and 8gb ram so this 75% of a node
memory: 6Gi
nodeSelector:
Archtype: "x86"
Loading