kube-workflow
Advanced tools
Comparing version 1.17.1 to 1.17.2
{ | ||
"name": "kube-workflow-common", | ||
"version": "1.17.1", | ||
"version": "1.17.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
{ | ||
"name": "kube-workflow", | ||
"version": "1.17.1", | ||
"version": "1.17.2", | ||
"repository": "git@github.com:SocialGouv/kube-workflow.git", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -25,2 +25,3 @@ const os = require("os") | ||
const { buildCtx } = require("./ctx") | ||
const set = require("lodash.set") | ||
@@ -65,2 +66,3 @@ const builder = async (envVars, options) => { | ||
KW_INLINE_VALUES, | ||
KW_INLINE_SET, | ||
HELM_ARGS = "", | ||
@@ -180,3 +182,25 @@ } = envVars | ||
} | ||
// values: env KW_INLINE_SET | ||
if(KW_INLINE_SET){ | ||
const sets = yaml.load(KW_INLINE_SET) | ||
for(const [key, val] of Object.entries(sets)){ | ||
set(values, key, val) | ||
} | ||
} | ||
// values: --set option | ||
if(options.set){ | ||
for(const s of options.set){ | ||
const index = s.indexOf("="); | ||
if(index===-1){ | ||
logger.warn("bad format for --set option, expected: foo=bar") | ||
continue | ||
} | ||
const key = s.slice(0, index) | ||
const val = s.slice(index+1) | ||
set(values, key, val) | ||
} | ||
} | ||
logger.debug("Compiling jobs") | ||
@@ -183,0 +207,0 @@ await compileJobs(values) |
@@ -35,3 +35,3 @@ const { Option } = require("commander") | ||
"--set <pair...>", | ||
"update value key or subkey, syntax is --set global.namespace=test, you can call it multiple times" | ||
"update value key or subkey, syntax is --set global.namespace=foo-barjo, you can call it multiple times" | ||
) | ||
@@ -38,0 +38,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
107382
1928