diff --git a/lib/interface/cli/commands/hybrid/helper.js b/lib/interface/cli/commands/hybrid/helper.js index 567bd2fba..f3384e454 100644 --- a/lib/interface/cli/commands/hybrid/helper.js +++ b/lib/interface/cli/commands/hybrid/helper.js @@ -1040,6 +1040,9 @@ function mergeValuesFromValuesFile(argv, valuesFile, handleError) { if (_.has(valuesObj, 'Runtime.userVolumes')) { _.set(_argv, 'userVolumes', valuesObj.Runtime.userVolumes); } + if (!_.has(_argv, 'storage-class-name') && _.has(valuesObj, 'StorageClass')) { + _.set(_argv, 'storage-class-name', valuesObj.StorageClass); + } return _argv; } diff --git a/lib/interface/cli/commands/hybrid/init.cmd.js b/lib/interface/cli/commands/hybrid/init.cmd.js index d54b6311a..b022eb119 100644 --- a/lib/interface/cli/commands/hybrid/init.cmd.js +++ b/lib/interface/cli/commands/hybrid/init.cmd.js @@ -572,7 +572,7 @@ const initCmd = new Command({ const re = await sdk.runtimeEnvs.get({ name: reName }); // update re env vars - if (envVars.length) { + if (envVars.length || reEnvVars) { const envVarsObj = _.merge(keyValueArrayToObject(envVars), reEnvVars); const currentEngineEnvVars = _.get(re, 'runtimeScheduler.envVars', {}); @@ -604,7 +604,7 @@ const initCmd = new Command({ await sdk.runtimeEnvs.update({ name: reName }, re); console.log(`Runtime environment "${colors.cyan(reName)}" has been updated with env vars`); }, - condition: envVars.length || reResources || userVolumeMounts || userVolumes, + condition: envVars.length || reResources || userVolumeMounts || userVolumes || reEnvVars, }); // set runtime as default diff --git a/package.json b/package.json index 766319da7..a9f4e2628 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.73.33", + "version": "0.73.34", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,