kube-workflow
Advanced tools
Comparing version 1.0.5 to 1.1.0
@@ -59,4 +59,10 @@ const os = require("os") | ||
logger.debug("Merge charts and overlays") | ||
await fs.copy(`${KUBEWORKFLOW_PATH}/chart`, KWBUILD_PATH) | ||
await Promise.all([ | ||
fs.copy(`${KUBEWORKFLOW_PATH}/base`, `${KWBUILD_PATH}/base`), | ||
fs.copy(`${KUBEWORKFLOW_PATH}/charts`, `${KWBUILD_PATH}/charts`), | ||
fs.copy(`${KUBEWORKFLOW_PATH}/common`, `${KWBUILD_PATH}/common`), | ||
fs.copy(`${KUBEWORKFLOW_PATH}/env`, `${KWBUILD_PATH}/env`), | ||
]) | ||
await Promise.all([ | ||
fs.copy(`${KWBUILD_PATH}/env`, `${KWBUILD_PATH}/env.autodevops`), | ||
@@ -67,3 +73,3 @@ fs.copy(`${KWBUILD_PATH}/common`, `${KWBUILD_PATH}/common.autodevops`), | ||
if (await fs.pathExists(workspaceKubeworkflowPath)) { | ||
await fs.copy(workspaceKubeworkflowPath, KWBUILD_PATH, { | ||
await fs.copy(`${workspaceKubeworkflowPath}`, `${KWBUILD_PATH}`, { | ||
dereference: true, | ||
@@ -105,4 +111,10 @@ }) | ||
} | ||
if (await fs.pathExists(`${KWBUILD_PATH}/templates`)) { | ||
logger.debug(`Copy templates to kube-workflow chart`) | ||
await fs.copy(`${KWBUILD_PATH}/templates`, `${KWBUILD_PATH}/charts/kube-workflow/templates`) | ||
} | ||
if (COMPONENTS) { | ||
logger.debug(`Enable only components: "${COMPONENTS}"`) | ||
const components = COMPONENTS.split(" ") | ||
@@ -119,3 +131,3 @@ for (const key of Object.keys(chart.dependencies)) { | ||
let baseManifests = await asyncShell( | ||
`helm template -f values.json ${HELM_ARGS} .`, | ||
`helm template -f values.json ${HELM_ARGS} charts/kube-workflow`, | ||
{ cwd: KWBUILD_PATH } | ||
@@ -122,0 +134,0 @@ ) |
@@ -9,3 +9,3 @@ const fs = require("fs-extra") | ||
const chart = yaml.load( | ||
await fs.readFile(`${rootDir}/Chart.yaml`, { encoding: "utf-8" }) | ||
await fs.readFile(`${rootDir}/charts/kube-workflow/Chart.yaml`, { encoding: "utf-8" }) | ||
) | ||
@@ -33,3 +33,3 @@ | ||
} | ||
await fs.writeFile(`${rootDir}/Chart.yaml`, yaml.dump(chart)) | ||
await fs.writeFile(`${rootDir}/charts/kube-workflow/Chart.yaml`, yaml.dump(chart)) | ||
@@ -36,0 +36,0 @@ for (const { name, alias } of dependencies) { |
@@ -18,2 +18,5 @@ const { spawn } = require("child_process") | ||
child.stderr.on("data", (data) => { | ||
if (data.includes("found symbolic link")){ | ||
return | ||
} | ||
err.push(data) | ||
@@ -20,0 +23,0 @@ }) |
@@ -5,2 +5,17 @@ # Changelog | ||
## [1.1.0](https://github.com/SocialGouv/kube-workflow/compare/v1.0.4...v1.1.0) (2022-03-20) | ||
### Features | ||
* chart kube-workflow ([17fb004](https://github.com/SocialGouv/kube-workflow/commit/17fb0049c2b1c5f216ae48f0015b8c731ec170ff)) | ||
* root chart ([90a5c36](https://github.com/SocialGouv/kube-workflow/commit/90a5c3693e0bc09ab3f3dd13926fec121acecd61)) | ||
### Bug Fixes | ||
* **create-secret:** fix typo ([6801985](https://github.com/SocialGouv/kube-workflow/commit/6801985a4d85941f16db288a750c8febd4534059)) | ||
* details ([992758f](https://github.com/SocialGouv/kube-workflow/commit/992758f6983933b125c93cda8082ada1f80b1fa5)) | ||
* use jest test.each ([3c4a5e2](https://github.com/SocialGouv/kube-workflow/commit/3c4a5e29ff2c655b37d81eab47cadd12f74bea41)) | ||
### [1.0.5](https://github.com/SocialGouv/kube-workflow/compare/v1.0.4...v1.0.5) (2022-03-20) | ||
@@ -7,0 +22,0 @@ |
{ | ||
"name": "kube-workflow", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"repository": "git@github.com:SocialGouv/kube-workflow.git", | ||
@@ -14,3 +14,4 @@ "license": "MIT", | ||
"pino": "^7.9.0", | ||
"pino-pretty": "^7.5.4" | ||
"pino-pretty": "^7.5.4", | ||
"pretty-ms": "^7.0.1" | ||
}, | ||
@@ -17,0 +18,0 @@ "devDependencies": { |
@@ -55,3 +55,3 @@ # `socialgouv/kube-workflow` 🚀 | ||
### Override the full Chart | ||
- You can optout from the generic Chart and define a new one by creating your own `Chart.yaml` in the directory `.kube-workflow`. More often, you can use kustomize to adjust the manifests. | ||
- You can optout from the generic Chart and define a new one by creating your own `Chart.yaml` in the directory `.kube-workflow/charts/kube-workflow`. More often, you can use kustomize to adjust the manifests. | ||
@@ -58,0 +58,0 @@ ### Override and extends kustomizations |
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
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
591125
650
11
+ Addedpretty-ms@^7.0.1
+ Addedparse-ms@2.1.0(transitive)
+ Addedpretty-ms@7.0.1(transitive)