-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTiltfile
37 lines (34 loc) · 801 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
load("ext://restart_process", "docker_build_with_restart")
load("ext://helm_resource", "helm_resource", "helm_repo")
app_name = "remove-empty-ns-operator"
image = app_name
docker_build_with_restart(
image,
".",
only=[
"./src",
"pyproject.toml",
"poetry.lock",
],
live_update=[
sync(
"./src/",
"/app/",
),
],
entrypoint="kopf run -n '*' /app/app.py"
)
helm_resource(
app_name,
"./helm",
namespace=app_name,
flags=[
"--create-namespace",
"--set=settings.interval=5",
"--set=settings.initialDelay=5",
"--set=settings.protectedNamespaces[0]=protected-one",
],
deps=[".helm"],
image_deps=[image],
image_keys=[("image.repository", "image.tag")],
)