-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTiltfile
55 lines (50 loc) · 1014 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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('badgr')
k8s_resource(
new_name = 'namespace',
objects = ['badgr:namespace'],
labels = ['badgr']
)
docker_build(
'brigadecore/badgr', '.',
only = [
'internal/',
'config.go',
'go.mod',
'go.sum',
'main.go'
],
ignore = ['**/*_test.go']
)
k8s_resource(
workload = 'badgr',
port_forwards = '31700:8080',
resource_deps = ['redis'],
labels = ['badgr']
)
k8s_resource(
workload = 'badgr-redis-master',
new_name = 'redis',
labels = ['badgr']
)
k8s_resource(
workload = 'redis',
objects = [
'badgr-redis:serviceaccount',
'badgr-redis-configuration:configmap',
'badgr-redis-health:configmap',
'badgr-redis-scripts:configmap',
'badgr-redis:secret',
],
)
k8s_yaml(
helm(
'./charts/badgr',
name = 'badgr',
namespace = 'badgr',
set = ['tls.enabled=false']
)
)