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

chore: add force-reload-nvd-db job #59

Merged
merged 1 commit into from
Mar 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions deploy/openshift/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,36 @@ objects:
name: sync-nvd-script
defaultMode: 0777
restartPolicy: OnFailure
- apiVersion: batch/v1
kind: Job
metadata:
name: force-reload-nvd-db
spec:
template:
spec:
containers:
- name: sync
image: quay.io/app-sre/ubi9-ubi-minimal:9.3
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- /scripts/force_reload.sh
volumeMounts:
- name: script-cm
mountPath: /scripts
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 10Mi
volumes:
- name: script-cm
configMap:
name: sync-nvd-script
defaultMode: 0777
restartPolicy: OnFailure
parameters:
- name: APP_NAME
displayName: Application name
Expand Down