-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTiltfile
46 lines (34 loc) · 1.03 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
# -*- mode: Python -*-
# set defaults
settings = {
'preload_images_for_kind': True
}
# global settings
settings.update(read_json(
"tilt-settings.json",
default={},
))
allow_k8s_contexts(settings.get('allow_k8s_contexts', 'default'))
default_registry(settings.get('default_registry', 'ttl.sh/'+os.getenv('USER')))
def deploy_operator():
custom_build(
'controller',
'docker build -t $EXPECTED_REF .',
deps=[
'bin/minestack-operator-linux-amd64',
'Dockerfile'
],
)
yaml = str(kustomize("config/tilt", kustomize_bin="./bin/kustomize"))
k8s_yaml(blob(yaml))
# Users may define their own Tilt customizations in tilt.d. This directory is excluded from git and these files will
# not be checked in to version control.
def include_user_tilt_files():
user_tiltfiles = listdir("tilt.d")
for f in user_tiltfiles:
include(f)
##############################
# Actual work happens here
##############################
include_user_tilt_files()
deploy_operator()