Skip to content

Commit

Permalink
fix(helmv3): do not attempt to update locks for local references (#15382
Browse files Browse the repository at this point in the history
)
  • Loading branch information
secustor authored May 2, 2022
1 parent bd17e75 commit ae9714a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/modules/manager/helmv3/__fixtures__/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ dependencies:
repository: https://gitlab.com/api/v4/projects/xxxxxxx/packages/helm/stable
- name: cert-manager
version: v1.7.1
- name: dask
version: 2.2.2
repository: file://../dependency_chart/dask
1 change: 1 addition & 0 deletions lib/modules/manager/helmv3/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function getRepositories(definitions: ChartDefinition[]): Repository[] {
.flatMap((value) => value.dependencies)
.filter((dependency) => dependency.repository) // only keep non-local references --> if no repository is defined the chart will be searched in charts/<name>
.filter((dependency) => !isAlias(dependency.repository)) // do not add aliases
.filter((dependency) => !dependency.repository.startsWith('file:')) // skip repositories which are locally referenced
.map((dependency) => {
// remove additional keys to prevent interference at deduplication
return {
Expand Down

0 comments on commit ae9714a

Please sign in to comment.