forked from redhat-cop/egressip-ipam-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTiltfile
25 lines (20 loc) · 775 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
# -*- mode: Python -*-
compile_cmd = 'CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/manager main.go'
image = 'quay.io/' + os.environ['repo'] + '/egressip-ipam-operator'
local_resource(
'egressip-ipam-operator-compile',
compile_cmd,
deps=['./main.go','./api','./controllers'])
custom_build(
image,
'podman build -t $EXPECTED_REF --ignorefile ci.dockerignore -f ./ci.Dockerfile . && podman push $EXPECTED_REF $EXPECTED_REF',
entrypoint=['/manager'],
deps=['./bin'],
live_update=[
sync('./bin/manager',"/manager"),
],
skips_local_docker=True,
)
allow_k8s_contexts(k8s_context())
k8s_yaml(kustomize('./config/local-development/tilt'))
k8s_resource('egressip-ipam-operator-controller-manager',resource_deps=['egressip-ipam-operator-compile'])