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

Enable Debian combine-to-osv on prod #2168

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions deployment/clouddeploy/gke-workers/base/debian-cve-convert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: debian-cve-convert
spec:
schedule: "0 */1 * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
activeDeadlineSeconds: 3600
template:
spec:
containers:
- name: debian-cve-convert
image: debian-cve-convert
imagePullPolicy: Always
securityContext:
privileged: true
resources:
requests:
cpu: 1
memory: "1G"
limits:
cpu: 1
memory: "2G"
restartPolicy: OnFailure
volumes:
- name: "ssd"
hostPath:
path: "/mnt/disks/ssd0"
1 change: 1 addition & 0 deletions deployment/clouddeploy/gke-workers/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resources:
- importer.yaml
- exporter.yaml
- alpine-cve-convert.yaml
- debian-cve-convert.yaml
- combine-to-osv.yaml
- debian-convert.yaml
- debian-first-version.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,14 @@ kind: CronJob
metadata:
name: debian-cve-convert
spec:
schedule: "0 */1 * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
activeDeadlineSeconds: 3600
template:
spec:
containers:
- name: debian-cve-convert
image: debian-cve-convert
imagePullPolicy: Always
env:
- name: GOOGLE_CLOUD_PROJECT
value: oss-vdb-test
- name: OUTPUT_GCS_BUCKET
value: osv-test-cve-osv-conversion
securityContext:
privileged: true
resources:
requests:
cpu: 1
memory: "1G"
limits:
cpu: 1
memory: "2G"
restartPolicy: OnFailure
volumes:
- name: "ssd"
hostPath:
path: "/mnt/disks/ssd0"
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
resources:
- ../../base
- debian-cve-convert.yaml
patches:
- path: workers.yaml
- path: scaler.yaml
- path: importer.yaml
- path: exporter.yaml
- path: alpine-cve-convert.yaml
- path: debian-cve-convert.yaml
- path: combine-to-osv.yaml
- path: debian-convert.yaml
- path: debian-first-version.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: debian-cve-convert
spec:
jobTemplate:
spec:
template:
spec:
containers:
- name: debian-cve-convert
env:
- name: GOOGLE_CLOUD_PROJECT
value: oss-vdb
- name: OUTPUT_GCS_BUCKET
value: cve-osv-conversion
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ patches:
- path: importer.yaml
- path: exporter.yaml
- path: alpine-cve-convert.yaml
- path: debian-cve-convert.yaml
- path: combine-to-osv.yaml
- path: debian-convert.yaml
- path: debian-first-version.yaml
Expand Down