Skip to content

Commit 4b2d291

Browse files
committed
tilt: use a local build via k3d registry - closes #20
Signed-off-by: clux <[email protected]>
1 parent 79fa03f commit 4b2d291

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tiltfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ cfg = config.parse()
88
features = cfg.get('features', "")
99
print("compiling with features: {}".format(features))
1010

11+
IMG = 'kube-rs/controller'
1112
local_resource('compile', 'just compile %s' % features)
12-
docker_build('clux/controller', '.', dockerfile='Dockerfile')
13+
docker_build(IMG, '.')
14+
# NB: for the image to be pullable by kubernetes via k3d
1315
k8s_yaml('yaml/crd.yaml')
14-
k8s_yaml('yaml/deployment.yaml')
16+
k8s_yaml(helm('./charts/doc-controller', set=['image.repository=' + IMG]))
1517
k8s_resource('doc-controller', port_forwards=8080)

0 commit comments

Comments
 (0)