|
|
@ -98,6 +98,8 @@ apiVersion: blindage.org/v1alpha1 |
|
|
|
kind: CronOp |
|
|
|
metadata: |
|
|
|
name: mycron |
|
|
|
labels: |
|
|
|
my-application: python-app |
|
|
|
spec: |
|
|
|
image: "python:3" |
|
|
|
annotations: |
|
|
@ -108,7 +110,7 @@ spec: |
|
|
|
- name: print-test |
|
|
|
annotations: |
|
|
|
logger: do-not-log |
|
|
|
commands: ['python','-c', 'print("doing nothing")'] |
|
|
|
commands: ['python','-c', 'print("testtesttest")'] |
|
|
|
schedule: "* * * * *" |
|
|
|
``` |
|
|
|
|
|
|
@ -124,12 +126,18 @@ apiVersion: blindage.org/v1alpha1 |
|
|
|
kind: CronOp |
|
|
|
metadata: |
|
|
|
name: mycron |
|
|
|
labels: |
|
|
|
app: python |
|
|
|
service: testing-cron |
|
|
|
spec: |
|
|
|
image: "python:3" |
|
|
|
tasks: |
|
|
|
- name: print-test |
|
|
|
commands: ['python','-c', 'print("doing nothing")'] |
|
|
|
schedule: "* * * * *" |
|
|
|
- name: hello |
|
|
|
commands: ['python','-c', 'print("hello world hourly")'] |
|
|
|
schedule: "0 * * * *" |
|
|
|
``` |
|
|
|
|
|
|
|
If you delete this resource operator will delete CronJobs and Jobs. |
|
|
|