mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26: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:
|
needs:
|
||||||
- manifests
|
- manifests
|
||||||
version: 13.7.2
|
version: 13.7.2
|
||||||
|
|
||||||
|
- name: invalid
|
||||||
|
|
|
@ -22,6 +22,10 @@ Object {
|
||||||
"https://prometheus-community.github.io/helm-charts",
|
"https://prometheus-community.github.io/helm-charts",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Object {
|
||||||
|
"depName": "invalid",
|
||||||
|
"skipReason": "invalid-name",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { getName, loadFixture } from '../../../test/util';
|
import { getName, loadFixture } from '../../../test/util';
|
||||||
import { extractPackageFile } from './extract';
|
import { extractPackageFile } from '.';
|
||||||
|
|
||||||
const multidocYaml = loadFixture('multidoc.yaml');
|
const multidocYaml = loadFixture('multidoc.yaml');
|
||||||
|
|
||||||
|
|
|
@ -39,12 +39,19 @@ export function extractPackageFile(
|
||||||
let depName = dep.chart;
|
let depName = dep.chart;
|
||||||
let repoName = null;
|
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 starts with ./ is for sure a local path
|
||||||
if (dep.chart.startsWith('./')) {
|
if (dep.chart.startsWith('./')) {
|
||||||
return {
|
return {
|
||||||
depName,
|
depName,
|
||||||
skipReason: 'local-chart',
|
skipReason: SkipReason.LocalChart,
|
||||||
} as PackageDependency;
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dep.chart.includes('/')) {
|
if (dep.chart.includes('/')) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
export interface Doc {
|
export interface Doc {
|
||||||
releases?: {
|
releases?: {
|
||||||
|
name: string;
|
||||||
chart: string;
|
chart: string;
|
||||||
version: string;
|
version: string;
|
||||||
}[];
|
}[];
|
||||||
|
|
Loading…
Reference in a new issue