forked from sighupio/permission-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
44 lines (40 loc) · 1.17 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
# Load config setup
load_dynamic("./development/tiltfiles/setup.tiltfile")
load('ext://restart_process', 'docker_build_with_restart')
docker_build_with_restart(
"permission-manager:local-dev",
".",
target="development",
live_update=[
sync("./static", "/app/static"),
sync("./cmd", "/app/cmd"),
sync("./internal", "/app/internal"),
sync("./go.mod", "/app/go.mod"),
sync("./go.sum", "/app/go.sum"),
sync("./web-client", "/app/web-client"),
],
build_args={
"CLUSTER_NAME": os.getenv("CLUSTER_NAME"),
"CONTROL_PLANE_ADDRESS": os.getenv("CONTROL_PLANE_ADDRESS"),
"BASIC_AUTH_PASSWORD": os.getenv("BASIC_AUTH_PASSWORD"),
"NAMESPACE": os.getenv("NAMESPACE"),
"PORT": os.getenv("PORT"),
},
entrypoint=["go", "run", "cmd/run-server.go"]
)
k8s_yaml(
helm(
'./helm_chart',
name='permission-manager',
namespace='permission-manager',
values='development/helm/values.yaml',
set=['config.controlPlaneAddress=' + os.getenv("CONTROL_PLANE_ADDRESS")]
))
k8s_resource(
workload="permission-manager",
links=[
link("https://permission-manager.dev/", "permission-manager"),
],
# objects=[] + cms,
labels="control-plane"
)