Skip to content

Commit e732c32

Browse files
authored
Merge pull request #839 from devigned/fix-tilt
fix: load kustomize_substitutions before envsubst
2 parents b8b88f6 + 0213da1 commit e732c32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tiltfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ COPY manager .
151151
# Build CAPZ and add feature gates
152152
def capz():
153153
# Apply the kustomized yaml for this provider
154-
yaml = str(kustomizesub("./config"))
155154
substitutions = settings.get("kustomize_substitutions", {})
156155
for substitution in substitutions:
157-
value = substitutions[substitution]
158-
yaml = yaml.replace("${" + substitution + "}", value)
156+
os.putenv(substitution, substitutions[substitution])
157+
yaml = str(kustomizesub("./config"))
158+
159159

160160
# add extra_args if they are defined
161161
if settings.get("extra_args"):

0 commit comments

Comments
 (0)