Skip to content
Snippets Groups Projects
Unverified Commit 24691ac4 authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

fix(manager/helmfile): replace all templates (#17210)

parent 0316a5e6
No related merge requests found
...@@ -37,3 +37,4 @@ releases: ...@@ -37,3 +37,4 @@ releases:
- name: example-public - name: example-public
version: 2.0.0 version: 2.0.0
chart: stable/external-dns chart: stable/external-dns
namespace: "{{ env "NAMESPACE" }}"
...@@ -335,7 +335,7 @@ describe('modules/manager/helmfile/extract', () => { ...@@ -335,7 +335,7 @@ describe('modules/manager/helmfile/extract', () => {
datasource: 'helm', datasource: 'helm',
deps: [ deps: [
{ {
depName: '{{ requiredEnv "RELEASE_NAME" }}', depName: '',
skipReason: 'local-chart', skipReason: 'local-chart',
}, },
{ depName: null, skipReason: 'local-chart' }, { depName: null, skipReason: 'local-chart' },
......
...@@ -12,7 +12,7 @@ const isValidChartName = (name: string | undefined): boolean => ...@@ -12,7 +12,7 @@ const isValidChartName = (name: string | undefined): boolean =>
function extractYaml(content: string): string { function extractYaml(content: string): string {
// regex remove go templated ({{ . }}) values // regex remove go templated ({{ . }}) values
return content.replace(/(^|:)\s*{{.+}}\s*$/gm, '$1'); return content.replace(regEx(/{{.+?}}/g), '');
} }
export function extractPackageFile( export function extractPackageFile(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment