kube-workflow
Advanced tools
Comparing version 1.10.2 to 1.10.3
{ | ||
"name": "kube-workflow", | ||
"version": "1.10.2", | ||
"version": "1.10.3", | ||
"repository": "git@github.com:SocialGouv/kube-workflow.git", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -121,5 +121,5 @@ const os = require("os") | ||
"templates", | ||
"common/templates", | ||
"common/templates", // deprecated, retrocompat | ||
`${ENVIRONMENT}/templates`, | ||
`env/${ENVIRONMENT}/templates`, | ||
`env/${ENVIRONMENT}/templates`, // deprecated, retrocompat | ||
]) { | ||
@@ -137,2 +137,11 @@ const templatesDir = `${buildKubeworkflowPath}/${dir}` | ||
const chart = await compileChart(values) | ||
const chartNames = await getDirectories(`${KWBUILD_PATH}/charts`) | ||
logger.debug("Merge env templates in charts") | ||
for (const chartName of chartNames){ | ||
const envChartTemplatesDir = `${KWBUILD_PATH}/charts/${chartName}/${ENVIRONMENT}` | ||
if (await fs.pathExists(envChartTemplatesDir)){ | ||
await fs.copy(envChartTemplatesDir, `${KWBUILD_PATH}/charts/${chartName}/templates`, {dereference: true}) | ||
} | ||
} | ||
@@ -164,3 +173,2 @@ if (KW_CHARTS) { | ||
logger.debug("Link workspace to charts") | ||
const chartNames = await getDirectories(`${KUBEWORKFLOW_PATH}/charts`) | ||
const filesPath = `${KWBUILD_PATH}/.kube-workflow/files` | ||
@@ -167,0 +175,0 @@ if (await fs.pathExists(filesPath)) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
250906
132
1518