Skip to content

Commit

Permalink
fix(manager/helmsman): add helm datasource to deps (#12330)
Browse files Browse the repository at this point in the history
  • Loading branch information
secustor authored Oct 26, 2021
1 parent f3f1d8c commit a13da7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/manager/helmsman/__snapshots__/extract.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Object {
"deps": Array [
Object {
"currentValue": "19.0.3",
"datasource": "helm",
"depName": "kube-prometheus",
"lookupName": "kube-prometheus-stack",
"registryUrls": Array [
Expand All @@ -13,6 +14,7 @@ Object {
},
Object {
"currentValue": "2.6.0",
"datasource": "helm",
"depName": "loki",
"lookupName": "loki",
"registryUrls": Array [
Expand All @@ -21,6 +23,7 @@ Object {
},
Object {
"currentValue": "0.7.7",
"datasource": "helm",
"depName": "tempo",
"lookupName": "tempo",
"registryUrls": Array [
Expand All @@ -29,6 +32,7 @@ Object {
},
Object {
"currentValue": "0.6.0",
"datasource": "helm",
"depName": "otlp-collector",
"lookupName": "opentelemetry-collector",
"registryUrls": Array [
Expand All @@ -37,34 +41,40 @@ Object {
},
Object {
"currentValue": "0.25.0",
"datasource": "helm",
"depName": "strimzi-operator",
"lookupName": "strimzi-kafka-operator",
"registryUrls": Array [
"https://strimzi.io/charts/",
],
},
Object {
"datasource": "helm",
"depName": "strimzi-operator-missing-version",
"skipReason": "no-version",
},
Object {
"currentValue": "2.6.0",
"datasource": "helm",
"depName": "loki-no-registry-ref",
"lookupName": "loki",
"skipReason": "no-repository",
},
Object {
"currentValue": "0.7.7",
"datasource": "helm",
"depName": "tempo-no-registry-ref",
"skipReason": "invalid-url",
},
Object {
"currentValue": "19.0.3",
"datasource": "helm",
"depName": "kube-prometheus-no-lookup-name",
"skipReason": "invalid-name",
},
Object {
"currentValue": "0.6.0",
"datasource": "helm",
"depName": "otlp-collector-no-chart",
"skipReason": "invalid-url",
},
Expand Down
2 changes: 2 additions & 0 deletions lib/manager/helmsman/extract.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import is from '@sindresorhus/is';
import { load } from 'js-yaml';
import { HelmDatasource } from '../../datasource/helm';
import { logger } from '../../logger';
import { SkipReason } from '../../types';
import { regEx } from '../../util/regex';
Expand All @@ -11,6 +12,7 @@ const chartRegex = regEx('^(?<registryRef>[^/]*)/(?<lookupName>[^/]*)$');
function createDep(key: string, doc: HelmsmanDocument): PackageDependency {
const dep: PackageDependency = {
depName: key,
datasource: HelmDatasource.id,
};
const anApp = doc.apps[key];
if (!anApp) {
Expand Down

0 comments on commit a13da7e

Please sign in to comment.