Skip to content

Commit

Permalink
fix(manager/terraform): do not return registryUrls containing undefin…
Browse files Browse the repository at this point in the history
…ed (#19905)
  • Loading branch information
secustor committed Jan 18, 2023
1 parent 081f002 commit 1127c5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions lib/modules/manager/terraform/extract.spec.ts
Expand Up @@ -594,7 +594,6 @@ describe('modules/manager/terraform/extract', () => {
datasource: 'helm',
depName: './charts/example',
depType: 'helm_release',
registryUrls: [undefined],
skipReason: 'local-chart',
},
{
Expand All @@ -617,7 +616,6 @@ describe('modules/manager/terraform/extract', () => {
datasource: 'helm',
depName: 'redis',
depType: 'helm_release',
registryUrls: [undefined],
},
]);
});
Expand Down
Expand Up @@ -21,10 +21,12 @@ export class HelmReleaseExtractor extends DependencyExtractor {
const dep: PackageDependency = {
currentValue: helmRelease.version,
depType: 'helm_release',
registryUrls: [helmRelease.repository],
depName: helmRelease.chart,
datasource: HelmDatasource.id,
};
if (!is.nullOrUndefined(helmRelease.repository)) {
dep.registryUrls = [helmRelease.repository];
}
if (!helmRelease.chart) {
dep.skipReason = 'invalid-name';
} else if (checkIfStringIsPath(helmRelease.chart)) {
Expand Down

0 comments on commit 1127c5e

Please sign in to comment.