Skip to content

remove trailing commas and set consistent yaml width #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scripts/evergreen/release/helm_files_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def update_standalone_installer(yaml_file_path: str, version: str):
yaml.explicit_start = True # Ensure explicit `---` in the output
yaml.indent(mapping=2, sequence=4, offset=2) # Align with tab width produced by Helm
yaml.preserve_quotes = True # Preserve original quotes in the YAML file
yaml.width = 4096 # Set a very large line width to prevent inconsistent line wrapping

with open(yaml_file_path, "r") as fd:
data = list(yaml.load_all(fd)) # Convert the generator to a list
Expand Down
10 changes: 7 additions & 3 deletions scripts/evergreen/release/update_helm_values_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,13 @@ def main() -> int:


def update_standalone(operator_version):
update_standalone_installer("public/mongodb-kubernetes.yaml", operator_version),
update_standalone_installer("public/mongodb-kubernetes-openshift.yaml", operator_version),
update_standalone_installer("public/mongodb-kubernetes-multi-cluster.yaml", operator_version),
file_paths = [
"public/mongodb-kubernetes.yaml",
"public/mongodb-kubernetes-openshift.yaml",
"public/mongodb-kubernetes-multi-cluster.yaml",
]
for file_path in file_paths:
update_standalone_installer(file_path, operator_version)


def update_helm_charts(operator_version, release):
Expand Down