-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove all old manifests and use Tilt to deploy the stack via Helm and rebuild Smee and deploy a new image on changes. Signed-off-by: Jacob Weinstock <[email protected]>
- Loading branch information
1 parent
79c6cd4
commit 1befe8a
Showing
14 changed files
with
28 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,33 @@ | ||
local_resource( | ||
'compile smee', | ||
'make cmd/smee/smee-linux-amd64' | ||
local_resource('compile smee', | ||
cmd='make cmd/smee/smee-linux-amd64', | ||
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', | ||
only=['.'] | ||
) | ||
k8s_yaml(kustomize('./manifests/kustomize/overlays/kind')) | ||
#k8s_yaml(kustomize('./manifests/kustomize/overlays/k3d')) | ||
default_registry('ttl.sh/meohmy-dghentld') | ||
|
||
trusted_proxies = os.getenv('trusted_proxies', '') | ||
lb_ip = os.getenv('LB_IP', '192.168.2.114') | ||
stack_version = os.getenv('STACK_CHART_VERSION', '0.5.0') | ||
layer2_interface = os.getenv('LAYER2_INTERFACE', 'eth1') | ||
|
||
load('ext://helm_resource', 'helm_resource') | ||
helm_resource('stack', | ||
chart='oci://ghcr.io/tinkerbell/charts/stack', | ||
namespace='tink', | ||
image_deps=['quay.io/tinkerbell/smee'], | ||
image_keys=[('smee.image')], | ||
flags=[ | ||
'--create-namespace', | ||
'--version=%s' % stack_version, | ||
'--set=global.trustedProxies={%s}' % trusted_proxies, | ||
'--set=global.publicIP=%s' % lb_ip, | ||
'--set=stack.kubevip.interface=%s' % layer2_interface, | ||
'--set=stack.relay.sourceInterface=%s' % layer2_interface, | ||
], | ||
release_name='tink-stack' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.