-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathTiltfile
More file actions
75 lines (67 loc) · 1.84 KB
/
Tiltfile
File metadata and controls
75 lines (67 loc) · 1.84 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
load("ext://deployment", "deployment_create")
load("ext://k8s_attach", "k8s_attach")
load("ext://restart_process", "docker_build_with_restart")
load("ext://helm_resource", "helm_resource")
allow_k8s_contexts(k8s_context())
# in order to use this registry you must add `127.0.0.1 registry-proxy` in your /etc/hosts
# and add http://registry-proxy:5000 to the list of insecure registries in docker daemon.
load("ext://k8s_attach", "k8s_attach")
local_resource(
"registry-probe",
serve_cmd="sleep infinity",
readiness_probe=probe(
period_secs=15,
http_get=http_get_action(host="registry-proxy", port=5000, path="/"),
),
labels=["registry"],
)
k8s_attach(
"registry-port-forward",
"deployment/docker-registry",
namespace="registry",
port_forwards=[5000],
labels=["registry"],
)
default_registry("registry-proxy:5000", host_from_cluster="docker.local")
labels = ["ccm-linode"]
local_resource(
"linode-cloud-controller-manager-linux-amd64",
"make build-linux",
# No glob support :(
deps=[
"cloud/",
"go.mod",
"go.sum",
"main.go",
"Makefile",
"sentry/",
],
ignore=[
"**/*.bin",
"**/gomock*",
"cloud/linode/mock_client_test.go",
],
labels=labels,
)
entrypoint = "/linode-cloud-controller-manager-linux"
docker_build_with_restart(
"linode/linode-cloud-controller-manager",
".",
entrypoint=[entrypoint],
ignore=["**/*.go", "go.*", "Makefile"],
live_update=[
sync(
"dist/linode-cloud-controller-manager-linux-amd64",
entrypoint,
),
],
build_args={"BUILD_SOURCE": "local"},
platform="linux/amd64",
)
chart_yaml = helm(
"deploy/chart",
name="ccm-linode",
namespace="kube-system",
values="./tilt.values.yaml",
)
k8s_yaml(chart_yaml)