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(config/jobs): move update-dbg to cron type. #1260

Merged
merged 1 commit into from
Oct 19, 2023
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
81 changes: 39 additions & 42 deletions config/jobs/update-dbg/update-dbg.yaml
Original file line number Diff line number Diff line change
@@ -1,44 +1,41 @@
postsubmits:
falcosecurity/kernel-crawler:
- name: update-dbg
decorate: true
branches:
- ^kernels$
run_if_changed: 'list.json$'
extra_refs:
# Check out the falcosecurity/test-infra repo
# This will be the working directory
- org: falcosecurity
repo: test-infra
base_ref: master
workdir: true
spec:
containers:
# See images/update-dbg
- image: 292999226676.dkr.ecr.eu-west-1.amazonaws.com/test-infra/update-dbg
imagePullPolicy: Always
command:
- /entrypoint.sh
args:
- /etc/github-token/oauth
env:
- name: GH_PROXY
value: https://api.github.com # fixme > Can't reach http://ghproxy at the moment
volumeMounts:
- name: github
mountPath: /etc/github-token
readOnly: true
- name: gpg-signing-key
mountPath: /root/gpg-signing-key/
readOnly: true
volumes:
periodics:
- name: update-dbg
cron: "0 9 * * *"
decorate: true
extra_refs:
# Check out the falcosecurity/test-infra repo
# This will be the working directory
- org: falcosecurity
repo: test-infra
base_ref: master
workdir: true
spec:
containers:
# See images/update-dbg
- image: 292999226676.dkr.ecr.eu-west-1.amazonaws.com/test-infra/update-dbg
imagePullPolicy: Always
command:
- /entrypoint.sh
args:
- /etc/github-token/oauth
env:
- name: GH_PROXY
value: https://api.github.com # fixme > Can't reach http://ghproxy at the moment
volumeMounts:
- name: github
secret:
# Secret containing a GitHub user access token with `repo` scope for creating PRs.
secretName: oauth-token
mountPath: /etc/github-token
readOnly: true
- name: gpg-signing-key
secret:
secretName: poiana-gpg-signing-key
defaultMode: 0400
nodeSelector:
Archtype: "x86"
mountPath: /root/gpg-signing-key/
readOnly: true
volumes:
- name: github
secret:
# Secret containing a GitHub user access token with `repo` scope for creating PRs.
secretName: oauth-token
- name: gpg-signing-key
secret:
secretName: poiana-gpg-signing-key
defaultMode: 0400
nodeSelector:
Archtype: "x86"