Skip to content

Commit 989e3dd

Browse files
author
Matt Pryor
authored
Handle empty values better in Tilt env (azimuth-cloud#149)
1 parent a558b2b commit 989e3dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/tilt-images-apply

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,13 @@ helm_get_values_proc = exec_cmd(
6868
os.environ["TILT_RELEASE_NAME"],
6969
"--namespace",
7070
os.environ["TILT_RELEASE_NAMESPACE"],
71+
"--output",
72+
"json",
7173
],
7274
stdout = subprocess.PIPE
7375
)
74-
current_values = yaml.safe_load(helm_get_values_proc.stdout)
75-
current_values.pop("USER-SUPPLIED VALUES")
76+
current_values = json.loads(helm_get_values_proc.stdout) or {}
77+
current_values.pop("USER-SUPPLIED VALUES", None)
7678

7779

7880
# Build and run the Helm upgrade command

0 commit comments

Comments
 (0)