-
Notifications
You must be signed in to change notification settings - Fork 1
/
Tiltfile
40 lines (36 loc) · 891 Bytes
/
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
load('ext://min_k8s_version', 'min_k8s_version')
min_k8s_version('1.18.0')
trigger_mode(TRIGGER_MODE_MANUAL)
load('ext://namespace', 'namespace_create')
namespace_create('brigade-noisy-neighbor')
k8s_resource(
new_name = 'namespace',
objects = ['brigade-noisy-neighbor:namespace'],
labels = ['brigade-noisy-neighbor']
)
docker_build(
'brigadecore/brigade-noisy-neighbor', '.',
only = [
'config.go',
'go.mod',
'go.sum',
'main.go'
]
)
k8s_resource(
workload = 'brigade-noisy-neighbor',
new_name = 'noisy-neighbor',
labels = ['brigade-noisy-neighbor'],
)
k8s_resource(
workload = 'noisy-neighbor',
objects = ['brigade-noisy-neighbor:secret']
)
k8s_yaml(
helm(
'./charts/brigade-noisy-neighbor',
name = 'brigade-noisy-neighbor',
namespace = 'brigade-noisy-neighbor',
set = ['brigade.apiToken=' + os.environ['BRIGADE_API_TOKEN']]
)
)