Skip to content

Commit

Permalink
remove tilt dependency on envsubst
Browse files Browse the repository at this point in the history
  • Loading branch information
eljohnson92 committed Feb 22, 2024
1 parent cdf1869 commit 77d209c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ local_resource(
cmd='EXP_CLUSTER_RESOURCE_SET=true clusterctl init --addon helm',
)

templated_yaml = local(
'kustomize build config/default | envsubst',
env={'LINODE_TOKEN': os.getenv('LINODE_TOKEN')},
quiet=True,
echo_off=True
)
k8s_yaml(templated_yaml)
manager_yaml = decode_yaml_stream(kustomize("config/default"))
for resource in manager_yaml:
if resource["metadata"]["name"] == "capl-manager-credentials":
resource["stringData"]["apiToken"] = os.getenv('LINODE_TOKEN')
k8s_yaml(encode_yaml_stream(manager_yaml))

k8s_resource(
workload="capl-controller-manager",
Expand Down

0 comments on commit 77d209c

Please sign in to comment.