-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTiltfile
25 lines (20 loc) · 885 Bytes
/
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
#load('ext://helm_resource', 'helm_resource', 'helm_repo')
#helm_repo('bitnami', 'https://charts.bitnami.com/bitnami')
#helm_resource('mysql', 'bitnami/mysql', resource_deps=['bitnami'])
# generate the controller manifest and deploy to the cluster
# k8s_yaml(kustomize("./config/default"))
k8s_yaml(helm(
'./chart/networktester',
name='networktester',
set=[ 'image.repository=localhost:5005/networktester',
'image.tag=latest',
'serviceMonitor.create=false',
'restrictNamespace=default',
],
))
# build and push the controller image to the local registry
local_resource(
'go-compile',
'CGO_ENABLED=0 GOOS=linux go build -o manager main.go',
deps=['./main.go', './pkg/', './controllers/', './api/'])
docker_build("localhost:5005/networktester", ".", dockerfile='hack/Dockerfile.tilt', extra_tag='latest', only = 'manager')