-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/helm-chart
- Loading branch information
Showing
54 changed files
with
1,019 additions
and
787 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import yaml | ||
|
||
|
||
def update_config(): | ||
# Read the config file | ||
with open("config.yaml", "r") as file: | ||
# Load all documents from YAML file (since it has multiple documents separated by ---) | ||
documents = list(yaml.safe_load_all(file)) | ||
|
||
# Find the pipeline configuration document | ||
for doc in documents: | ||
if doc.get("type") == "pipeline": | ||
# Update engine name in all pipelines | ||
for pipe in doc.get("pipes", []): | ||
if "engine" in pipe: | ||
pipe["engine"] = "wren_ui" | ||
|
||
# Write back to the file | ||
with open("config.yaml", "w") as file: | ||
yaml.safe_dump_all(documents, file, default_flow_style=False) | ||
|
||
print("Successfully updated engine names to 'wren_ui' in all pipelines") | ||
|
||
|
||
if __name__ == "__main__": | ||
update_config() |
Oops, something went wrong.