aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/datasource/helm/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/datasource/helm/index.ts')
-rw-r--r--lib/datasource/helm/index.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/datasource/helm/index.ts b/lib/datasource/helm/index.ts
index ad29e349439..d646d07d217 100644
--- a/lib/datasource/helm/index.ts
+++ b/lib/datasource/helm/index.ts
@@ -3,6 +3,7 @@ import yaml from 'js-yaml';
import { logger } from '../../logger';
import * as globalCache from '../../util/cache/global';
import { Http } from '../../util/http';
+import { ensureTrailingSlash } from '../../util/url';
import { DatasourceError, GetReleasesConfig, ReleaseResult } from '../common';
export const id = 'helm';
@@ -25,7 +26,9 @@ export async function getRepositoryData(
}
let res: any;
try {
- res = await http.get('index.yaml', { baseUrl: repository });
+ res = await http.get('index.yaml', {
+ baseUrl: ensureTrailingSlash(repository),
+ });
if (!res || !res.body) {
logger.warn(`Received invalid response from ${repository}`);
return null;