-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
99 lines (85 loc) · 3.71 KB
/
Tiltfile
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
allow_k8s_contexts('local')
docker_prune_settings(num_builds=1, keep_recent=1)
aissemble_version = '1.10.0-SNAPSHOT'
build_args = { 'DOCKER_BASELINE_REPO_ID': 'ghcr.io/',
'VERSION_AISSEMBLE': aissemble_version}
# Kafka
yaml = helm(
'regression-test-deploy/src/main/resources/apps/kafka-cluster',
values=['regression-test-deploy/src/main/resources/apps/kafka-cluster/values.yaml',
'regression-test-deploy/src/main/resources/apps/kafka-cluster/values-dev.yaml']
)
k8s_yaml(yaml)
k8s_kind('SparkApplication', image_json_path='{.spec.image}')
# data-access
docker_build(
ref='regression-test-data-access-docker',
context='regression-test-docker/regression-test-data-access-docker',
build_args=build_args,
dockerfile='regression-test-docker/regression-test-data-access-docker/src/main/resources/docker/Dockerfile'
)
# spark-worker-image
docker_build(
ref='regression-test-spark-worker-docker',
context='regression-test-docker/regression-test-spark-worker-docker',
build_args=build_args,
extra_tag='regression-test-spark-worker-docker:latest',
dockerfile='regression-test-docker/regression-test-spark-worker-docker/src/main/resources/docker/Dockerfile'
)
# policy-decision-point
docker_build(
ref='regression-test-policy-decision-point-docker',
context='regression-test-docker/regression-test-policy-decision-point-docker',
build_args=build_args,
dockerfile='regression-test-docker/regression-test-policy-decision-point-docker/src/main/resources/docker/Dockerfile'
)
yaml = helm(
'regression-test-deploy/src/main/resources/apps/policy-decision-point',
name='policy-decision-point',
values=['regression-test-deploy/src/main/resources/apps/policy-decision-point/values.yaml',
'regression-test-deploy/src/main/resources/apps/policy-decision-point/values-dev.yaml']
)
k8s_yaml(yaml)
yaml = helm(
'regression-test-deploy/src/main/resources/apps/spark-operator',
name='spark-operator',
values=['regression-test-deploy/src/main/resources/apps/spark-operator/values.yaml',
'regression-test-deploy/src/main/resources/apps/spark-operator/values-dev.yaml']
)
k8s_yaml(yaml)
yaml = helm(
'regression-test-deploy/src/main/resources/apps/spark-infrastructure',
name='spark-infrastructure',
values=['regression-test-deploy/src/main/resources/apps/spark-infrastructure/values.yaml',
'regression-test-deploy/src/main/resources/apps/spark-infrastructure/values-dev.yaml']
)
k8s_yaml(yaml)
yaml = helm(
'regression-test-deploy/src/main/resources/apps/metadata',
name='metadata',
values=['regression-test-deploy/src/main/resources/apps/metadata/values.yaml',
'regression-test-deploy/src/main/resources/apps/metadata/values-dev.yaml']
)
k8s_yaml(yaml)
k8s_yaml('regression-test-deploy/src/main/resources/apps/spark-worker-image/spark-worker-image.yaml')
yaml = helm(
'regression-test-deploy/src/main/resources/apps/data-access',
name='data-access',
values=['regression-test-deploy/src/main/resources/apps/data-access/values.yaml',
'regression-test-deploy/src/main/resources/apps/data-access/values-dev.yaml']
)
k8s_yaml(yaml)
yaml = helm(
'regression-test-deploy/src/main/resources/apps/s3-local',
name='s3-local',
values=['regression-test-deploy/src/main/resources/apps/s3-local/values.yaml',
'regression-test-deploy/src/main/resources/apps/s3-local/values-dev.yaml']
)
k8s_yaml(yaml)
yaml = helm(
'regression-test-deploy/src/main/resources/apps/pipeline-invocation-service',
name='pipeline-invocation-service',
values=['regression-test-deploy/src/main/resources/apps/pipeline-invocation-service/values.yaml',
'regression-test-deploy/src/main/resources/apps/pipeline-invocation-service/values-dev.yaml']
)
k8s_yaml(yaml)