Skip to content

Commit ed73a38

Browse files
committed
chore(script): Dedent and """
1 parent 767c99a commit ed73a38

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.scripts/update_helm_charts.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,14 @@ def process_yaml_files(top_dir: str) -> None:
128128

129129
if __name__ == "__main__":
130130
print(
131-
'⚠️⚠️⚠️ This script is best-effort! Always check the result using "git diff"! ⚠️⚠️⚠️'
131+
dedent("""
132+
⚠️⚠️⚠️ This script is best-effort! Always check the result using "git diff"! ⚠️⚠️⚠️
133+
Notably, it skips invalid YAMLs, which can be the case because we sometimes use templating syntax, even for helm-chart definitions.
134+
In those cases, use quotes around templated values, or otherwise comments for templated blocks.
135+
136+
Please judge on the skipped files if they contain a helm-chart and should be manually bumped.
137+
The script can be improved to handle such files in the future.
138+
""")
132139
)
133-
print(
134-
"Notably, it skips invalid YAMLs, which can be the case because we sometimes use templating syntax, even for helm-chart definitions"
135-
)
136-
print(
137-
"Please judge on the skipped files if they contain a helm-chart and should be manually bumped"
138-
)
139-
print("The script can be improved to handle such files in the future")
140-
print()
141140

142141
process_yaml_files(".")

0 commit comments

Comments
 (0)