kube-workflow
Advanced tools
Comparing version 1.17.0 to 1.17.1
{ | ||
"name": "kube-workflow-common", | ||
"version": "1.17.0", | ||
"version": "1.17.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
{ | ||
"name": "kube-workflow", | ||
"version": "1.17.0", | ||
"version": "1.17.1", | ||
"repository": "git@github.com:SocialGouv/kube-workflow.git", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -29,2 +29,3 @@ const os = require("os") | ||
for (const requiredEnv of [ | ||
@@ -38,3 +39,3 @@ "KUBEWORKFLOW_PATH", | ||
} | ||
Object.assign(envVars, getGitInfos(envVars.WORKSPACE_PATH, envVars, true)) | ||
@@ -45,3 +46,7 @@ | ||
} | ||
if(!envVars.WORKSPACE_SUBPATH){ | ||
envVars.WORKSPACE_SUBPATH = "/.kube-workflow" | ||
} | ||
if (!envVars.KWBUILD_PATH) { | ||
@@ -58,3 +63,3 @@ envVars.KWBUILD_PATH = await mkdtemp( | ||
WORKSPACE_PATH, | ||
WORKSPACE_SUBPATH = "/.kube-workflow", | ||
WORKSPACE_SUBPATH, | ||
KW_CHARTS, | ||
@@ -61,0 +66,0 @@ KW_SUBCHARTS, |
@@ -17,2 +17,3 @@ const { buildCtx } = require("~/build/ctx") | ||
} | ||
if (requirable){ | ||
@@ -19,0 +20,0 @@ patched = await require(`${workspaceKubeworkflowPath}/patches`)(manifests, values) |
@@ -15,3 +15,2 @@ const os = require("os") | ||
const cwd = options.cwd || process.cwd() | ||
const envVars = { | ||
@@ -21,3 +20,3 @@ ...process.env, | ||
KW_SUBCHARTS: options.subcharts || process.env.KW_SUBCHARTS, | ||
KW_NO_TREE: options.noTree, | ||
KW_DISPLAY_TREE: options.tree, | ||
HELM_ARGS: options.A || process.env.HELM_ARGS, | ||
@@ -32,4 +31,4 @@ KW_INLINE_VALUES: options.inlineValues || process.env.KW_INLINE_VALUES, | ||
} | ||
const result = await builder(envVars, options) | ||
@@ -36,0 +35,0 @@ const { manifestsFile, manifests } = result |
@@ -122,3 +122,3 @@ const fs = require("fs-extra") | ||
module.exports = async (manifests, values) => { | ||
module.exports = async (manifests, _values) => { | ||
const logger = buildCtx.require("logger") | ||
@@ -128,3 +128,3 @@ const env = buildCtx.require("env") | ||
KWBUILD_PATH, | ||
KW_NO_TREE, | ||
KW_DISPLAY_TREE, | ||
} = env | ||
@@ -205,4 +205,3 @@ | ||
const treeStr = logTree(tree) | ||
if (!KW_NO_TREE){ | ||
if (KW_DISPLAY_TREE){ | ||
logger.info("\n"+treeStr) | ||
@@ -209,0 +208,0 @@ } |
@@ -22,2 +22,3 @@ const { configureDebug } = require("~common/utils/logger") | ||
.addOption(options.upload) | ||
.addOption(options.set) | ||
.option("--output, -o", "enable direct output of manifest") | ||
@@ -24,0 +25,0 @@ .option( |
@@ -19,2 +19,3 @@ const { configureDebug } = require("~common/utils/logger") | ||
.addOption(options.upload) | ||
.addOption(options.set) | ||
.option( | ||
@@ -21,0 +22,0 @@ "--file, -f <file>", |
@@ -33,2 +33,7 @@ const { Option } = require("commander") | ||
module.exports.set = new Option( | ||
"--set <pair...>", | ||
"update value key or subkey, syntax is --set global.namespace=test, you can call it multiple times" | ||
) | ||
module.exports.cwd = new Option("--cwd <path>", "set current working directory") | ||
@@ -35,0 +40,0 @@ |
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
106797
1906