Skip to content

Commit

Permalink
Fixed job to cronjob for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbcd committed Nov 21, 2024
1 parent ed80420 commit cc1df9f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 29 deletions.
30 changes: 30 additions & 0 deletions eks-anywhere-common/Testers/Sysdig/sysdig-test-cronjob.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: sysdig-agent-test
namespace: sysdig
spec:
schedule: "0 1 * * *"
backoffLimit: 1
jobTemplate:
spec:
template:
activeDeadlineSeconds: 1000
spec:
containers:
- name: job
image: 'alpine/k8s:1.26.2'
imagePullPolicy: Always
command:
- /bin/test.sh
volumeMounts:
- name: sysdig-test-configmap-volume
mountPath: /bin/test.sh
readOnly: true
subPath: test.sh
volumes:
- name: sysdig-test-configmap-volume
configMap:
defaultMode: 0700
name: sysdig-test-configmap
restartPolicy: Never
29 changes: 0 additions & 29 deletions eks-anywhere-common/Testers/Sysdig/sysdig-test-job.yaml

This file was deleted.

0 comments on commit cc1df9f

Please sign in to comment.