Skip to content

Commit 085098b

Browse files
authored
Merge pull request #547 from alexeldeib/ace/tilt
🏃 allow for extra args in entrypoint
2 parents d614047 + 7db0e44 commit 085098b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tiltfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,19 @@ def capz():
141141
tilt_dockerfile_header,
142142
])
143143

144+
entrypoint = ["sh", "/start.sh", "/manager"]
145+
extra_args = p.get("extra_args")
146+
if extra_args:
147+
entrypoint.extend(extra_args)
148+
144149
# Set up an image build for the provider. The live update configuration syncs the output from the local_resource
145150
# build into the container.
146151
docker_build(
147152
ref = "gcr.io/k8s-staging-cluster-api-azure/cluster-api-azure-controller",
148153
context = "./.tiltbuild/",
149154
dockerfile_contents = dockerfile_contents,
150155
target = "tilt",
151-
entrypoint = ["sh", "/start.sh", "/manager"],
156+
entrypoint = entrypoint,
152157
only = "manager",
153158
live_update = [
154159
sync("./.tiltbuild/manager", "/manager"),

0 commit comments

Comments
 (0)