Skip to content

Commit

Permalink
Clean up Tiltfile:
Browse files Browse the repository at this point in the history
Remove reference to my local machine.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
  • Loading branch information
jacobweinstock committed Nov 21, 2024
1 parent c6e17f7 commit 24250a6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ local_resource('compile smee',
deps=["go.mod", "go.sum", "internal", "Dockerfile", "cmd/smee/main.go", "cmd/smee/flag.go", "cmd/smee/backend.go"],
)

#docker_build(
# 'quay.io/tinkerbell/smee',
# '.',
# dockerfile='Dockerfile',
#)
docker_build_with_restart(
'quay.io/tinkerbell/smee',
'.',
Expand All @@ -27,12 +22,14 @@ default_trusted_proxies = local_output("kubectl get nodes -o jsonpath='{.items[*
trusted_proxies = os.getenv('TRUSTED_PROXIES', default_trusted_proxies)
lb_ip = os.getenv('LB_IP', '')
stack_version = os.getenv('STACK_CHART_VERSION', '0.5.0')
stack_location = os.getenv('STACK_LOCATION', '/home/tink/repos/tinkerbell/charts/tinkerbell/stack') # or a local path like '/home/tink/repos/tinkerbell/charts/tinkerbell/stack'
stack_location = os.getenv('STACK_LOCATION', 'oci://ghcr.io/tinkerbell/charts/stack') # or a local path like '/home/tink/repos/tinkerbell/charts/tinkerbell/stack'
namespace = 'tink'

if lb_ip == '':
fail('Please set the LB_IP environment variable. This is required to deploy the stack.')

# to use a KinD cluster, add a macvlan interface into the KinD docker container. for example: `docker network connect macvlan kind-control-plane`
# Then uncomment the 2 interface lines below.
helm_resource('stack',
chart=stack_location,
namespace=namespace,
Expand All @@ -43,8 +40,8 @@ helm_resource('stack',
'--version=%s' % stack_version,
'--set=global.trustedProxies={%s}' % trusted_proxies,
'--set=global.publicIP=%s' % lb_ip,
'--set=stack.kubevip.interface=eth1',
'--set=stack.relay.sourceInterface=eth1',
#'--set=stack.kubevip.interface=eth1',
#'--set=stack.relay.sourceInterface=eth1',
],
release_name='stack'
)

0 comments on commit 24250a6

Please sign in to comment.