Skip to content

Commit 6d5c1cf

Browse files
committed
fix tilt live reload for capz-controller-manager
1 parent 1307b60 commit 6d5c1cf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Tiltfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com
118118

119119
tilt_dockerfile_header = """
120120
FROM gcr.io/distroless/base:debug as tilt
121-
WORKDIR /
121+
WORKDIR /tilt
122+
RUN ["/busybox/chmod", "0777", "."]
122123
COPY --from=tilt-helper /process.txt .
123124
COPY --from=tilt-helper /start.sh .
124125
COPY --from=tilt-helper /restart.sh .
@@ -219,7 +220,7 @@ def capz():
219220
tilt_dockerfile_header,
220221
])
221222

222-
entrypoint = ["sh", "/start.sh", "/manager"]
223+
entrypoint = ["sh", "/tilt/start.sh", "/tilt/manager"]
223224
extra_args = settings.get("extra_args")
224225
if extra_args:
225226
entrypoint.extend(extra_args)
@@ -234,8 +235,8 @@ def capz():
234235
entrypoint = entrypoint,
235236
only = "manager",
236237
live_update = [
237-
sync(".tiltbuild/manager", "/manager"),
238-
run("sh /restart.sh"),
238+
sync(".tiltbuild/manager", "/tilt/manager"),
239+
run("sh /tilt/restart.sh"),
239240
],
240241
ignore = ["templates"],
241242
)

0 commit comments

Comments
 (0)