From 0213da1a181e6ad80145553c71d152511f20e44f Mon Sep 17 00:00:00 2001 From: David Justice Date: Tue, 28 Jul 2020 16:25:18 -0400 Subject: [PATCH] fix: load k8s substitutions before envsubst --- Tiltfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tiltfile b/Tiltfile index 2a1989fa9f3..ef1290095ab 100644 --- a/Tiltfile +++ b/Tiltfile @@ -151,11 +151,11 @@ COPY manager . # Build CAPZ and add feature gates def capz(): # Apply the kustomized yaml for this provider - yaml = str(kustomizesub("./config")) substitutions = settings.get("kustomize_substitutions", {}) for substitution in substitutions: - value = substitutions[substitution] - yaml = yaml.replace("${" + substitution + "}", value) + os.putenv(substitution, substitutions[substitution]) + yaml = str(kustomizesub("./config")) + # add extra_args if they are defined if settings.get("extra_args"):