mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
fix(manager:helmfile): add chart check (#11103)
This commit is contained in:
parent
17daab1920
commit
9fd3b96e14
5 changed files with 17 additions and 3 deletions
|
@ -60,3 +60,5 @@ releases:
|
|||
needs:
|
||||
- manifests
|
||||
version: 13.7.2
|
||||
|
||||
- name: invalid
|
||||
|
|
|
@ -22,6 +22,10 @@ Object {
|
|||
"https://prometheus-community.github.io/helm-charts",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"depName": "invalid",
|
||||
"skipReason": "invalid-name",
|
||||
},
|
||||
],
|
||||
}
|
||||
`;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { getName, loadFixture } from '../../../test/util';
|
||||
import { extractPackageFile } from './extract';
|
||||
import { extractPackageFile } from '.';
|
||||
|
||||
const multidocYaml = loadFixture('multidoc.yaml');
|
||||
|
||||
|
|
|
@ -39,12 +39,19 @@ export function extractPackageFile(
|
|||
let depName = dep.chart;
|
||||
let repoName = null;
|
||||
|
||||
if (!is.string(dep.chart)) {
|
||||
return {
|
||||
depName: dep.name,
|
||||
skipReason: SkipReason.InvalidName,
|
||||
};
|
||||
}
|
||||
|
||||
// If starts with ./ is for sure a local path
|
||||
if (dep.chart.startsWith('./')) {
|
||||
return {
|
||||
depName,
|
||||
skipReason: 'local-chart',
|
||||
} as PackageDependency;
|
||||
skipReason: SkipReason.LocalChart,
|
||||
};
|
||||
}
|
||||
|
||||
if (dep.chart.includes('/')) {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
export interface Doc {
|
||||
releases?: {
|
||||
name: string;
|
||||
chart: string;
|
||||
version: string;
|
||||
}[];
|
||||
|
|
Loading…
Reference in a new issue