Skip to content

Add daily Trigger service #1133

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,19 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"

trigger_daily:
<<: *base-service
container_name: 'kernelci-pipeline-trigger-daily'
command:
- './src/trigger.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'run'
- '--poll-period=86400'
- '--trees=aaptel'
- '--name=trigger_daily'
extra_hosts:
- "host.docker.internal:host-gateway"

timeout:
<<: *base-service
container_name: 'kernelci-pipeline-timeout'
Expand Down
28 changes: 27 additions & 1 deletion kube/aks/trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
- --settings=/secrets/kernelci.toml
- --yaml-config=/config
- run
- --trees=!kernelci
- --trees=!kernelci,chromiumos
- --name=trigger
env:
- name: KCI_API_TOKEN
Expand All @@ -55,6 +55,32 @@ spec:
mountPath: /secrets
- name: config-volume
mountPath: /config
- name: trigger_daily
image: kernelci/kernelci:pipeline@sha256:bb01424c4dedcd2ffa87cef225b09116cf874bc2b91fc63ed6d993d6fc5c43cb
imagePullPolicy: Always
command:
- ./src/trigger.py
- --settings=/secrets/kernelci.toml
- --yaml-config=/config
- run
- --poll-period=86400
- --trees=chromiumos
- --name=trigger_daily
env:
- name: KCI_API_TOKEN
valueFrom:
secretKeyRef:
name: kernelci-api-token
key: token
resources:
requests:
memory: "128Mi"
cpu: "500m"
volumeMounts:
- name: secrets
mountPath: /secrets
- name: config-volume
mountPath: /config
volumes:
- name: secrets
secret:
Expand Down