-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
76 lines (69 loc) · 1.26 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
allow_k8s_contexts(['db-operator'])
load('ext://namespace', 'namespace_yaml')
local_resource(
'unit-test',
'just test',
auto_init = False,
trigger_mode = TRIGGER_MODE_MANUAL,
labels=['tests']
)
custom_build(
'db-operator',
'just build $EXPECTED_REF',
[
'cmd/operator',
'deploy/Dockerfile',
'internal',
'pkg',
'go.mod',
'go.sum',
],
ignore = [
'dist/*',
'**/*_test.go'
]
)
custom_build(
'db-operator-tests',
'just build-test $EXPECTED_REF',
[
'cmd/operator',
'deploy/Dockerfile',
'internal',
'tests',
'pkg',
'go.mod',
'go.sum',
],
ignore = [
'dist/*',
]
)
k8s_yaml(namespace_yaml('test-ns'))
k8s_yaml(helm(
'deploy/chart',
name='db-operator',
namespace='test-ns',
set=[
'image=db-operator'
]
))
k8s_resource(
'db-operator',
labels=["operator"],
trigger_mode=TRIGGER_MODE_MANUAL,
)
k8s_yaml(helm(
'deploy/test-chart',
name='db-operator-tests',
namespace='test-ns',
set=[
'image=db-operator-tests'
]
))
k8s_resource(
'db-operator-test',
labels=["tests"],
trigger_mode=TRIGGER_MODE_MANUAL,
auto_init=False
)