generated from crossplane/provider-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskschedule.yaml
52 lines (52 loc) · 1.27 KB
/
taskschedule.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apiVersion: core.springclouddataflow.crossplane.io/v1alpha1
kind: Application
metadata:
name: app-1
spec:
forProvider:
name: "App001"
type: "task"
version: "3.0.0"
uri: "docker:springcloudtask/timestamp-task:3.0.0"
bootVersion: "2"
defaultVersion: true
providerConfigRef:
name: provider-spring-cloud-dataflow-config
---
apiVersion: core.springclouddataflow.crossplane.io/v1alpha1
kind: TaskDefinition
metadata:
name: task-1
spec:
forProvider:
name: "MyTask01"
description: "Test Task"
definition: "App001"
providerConfigRef:
name: provider-spring-cloud-dataflow-config
---
apiVersion: v1
kind: Secret
metadata:
name: my-secret
namespace: default
type: Opaque
stringData:
credentialA: SecretA
credentialB: SecretB
---
apiVersion: core.springclouddataflow.crossplane.io/v1alpha1
kind: TaskSchedule
metadata:
name: schedule-1
spec:
forProvider:
scheduleName: "myschedule01"
taskDefinitionNameRef:
name: "task-1"
cronExpression: "* * * * *"
platform: "default"
arguments: "--myarg1=value1 --myarg2=value2"
properties: "scheduler.kubernetes.jobAnnotations=annotation1:value1,annotation2:value2,scheduler.kubernetes.secretRefs=[my-secret]"
providerConfigRef:
name: provider-spring-cloud-dataflow-config