Skip to content
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

Update dependencies before attempting to package with helm #30

Merged
merged 7 commits into from
May 19, 2023

Conversation

callumPearce
Copy link

No description provided.

Callum Pearce and others added 3 commits May 18, 2023 16:34
@@ -23,7 +23,7 @@ def helm_package(
raise ValueError("output_file and output_directory cannot both be set")

with contextlib.ExitStack() as exit_stack:
command = ["helm", "package", str(chart_path)]
command = ["helm", "package", str(chart_path), "--dependency-update"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@callumPearce can we make this configurable with a keyword argument dependency_update in helm_package? (for which defaulting to True is reasonable IMO)

Suggested change
command = ["helm", "package", str(chart_path), "--dependency-update"]
command = ["helm", "package", str(chart_path)]
if dependency_update:
command.append("--dependency-update")

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, definitely!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -16,6 +16,7 @@ def helm_package(
output_directory: Path | None = None,
app_version: str | None = None,
version: str | None = None,
update_chart_dependencies: bool = True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
update_chart_dependencies: bool = True
update_chart_dependencies: bool = True,

@ntrinquier ntrinquier merged commit bf4ec71 into develop May 19, 2023
8 checks passed
@ntrinquier ntrinquier deleted the cp/update-helm-dependencies-before-packaging branch May 19, 2023 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants