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

feat: hierarchical parallel dependency updates #55

Merged
merged 15 commits into from
Dec 1, 2024

Conversation

karlderkaefer
Copy link
Contributor

@karlderkaefer karlderkaefer commented Nov 20, 2024

Features

  • running sub chart dependency update in parallel per hierarchy level using go routines
  • runtime reduction by 50%-80%
  • use helm dep build instead of helm dep update
  • clean lockfiles before dep build
  • collecting all chart depdendencies first and then do a login to registry that are needed for the chart, after that do recursive depdency update
  • supported chart protocol file:// and oci://
  • refactor code

This commit updates the `UpdateChart` method in the `HelmUpdater` struct to include a refresh option when updating dependencies. The method now checks the `HELM_DEPS_SKIP_REFRESH` environment variable and only refreshes the dependencies if the variable is set to `false`. This change ensures that the dependencies are always up to date when refreshing is enabled.

Refactor the code to use the `HelmUpdater` struct and its associated methods for updating dependencies. This improves code organization and readability.
This commit adds the refresh option to the `UpdateChart` method in the `HelmUpdater` struct. The method now checks the `HELM_DEPS_SKIP_REFRESH` environment variable and only refreshes the dependencies if the variable is set to `false`. This change ensures that the dependencies are always up to date when refreshing is enabled.

Refactor the code to use the `HelmUpdater` struct and its associated methods for updating dependencies, improving code organization and readability.
@karlderkaefer karlderkaefer marked this pull request as ready for review December 1, 2024 13:26
@karlderkaefer karlderkaefer merged commit 5e71804 into main Dec 1, 2024
5 checks passed
@karlderkaefer karlderkaefer deleted the add-helm-repo-add branch December 1, 2024 13:39
circleci-signavio pushed a commit that referenced this pull request Dec 1, 2024
# [2.0.0](v1.4.6...v2.0.0) (2024-12-01)

### Features

* hierarchical parallel dependency updates ([#55](#55)) ([5e71804](5e71804))

### BREAKING CHANGES

* Dependency updates are now executed in parallel, which may affect existing workflows relying on sequential updates.
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.

1 participant