mirror of https://github.com/portainer/portainer
incorrect variable name used (#8198)
parent
09bf5d03f4
commit
929749c0da
|
@ -147,7 +147,7 @@ class KubernetesApplicationHelper {
|
|||
/* #region CONFIGURATIONS FV <> ENV & VOLUMES */
|
||||
static generateConfigurationFormValuesFromEnvAndVolumes(env, volumes, configurations) {
|
||||
const finalRes = _.flatMap(configurations, (cfg) => {
|
||||
const filterCondition = cfg.Type === KubernetesConfigurationKinds.CONFIGMAP ? 'valueFrom.configMapKeyRef.name' : 'valueFrom.secretKeyRef.name';
|
||||
const filterCondition = cfg.Kind === KubernetesConfigurationKinds.CONFIGMAP ? 'valueFrom.configMapKeyRef.name' : 'valueFrom.secretKeyRef.name';
|
||||
|
||||
const cfgEnv = _.filter(env, [filterCondition, cfg.Name]);
|
||||
const cfgVol = _.filter(volumes, { configurationName: cfg.Name });
|
||||
|
@ -207,7 +207,7 @@ class KubernetesApplicationHelper {
|
|||
let finalMounts = [];
|
||||
|
||||
_.forEach(configurations, (config) => {
|
||||
const isBasic = config.SelectedConfiguration.Type === KubernetesConfigurationKinds.CONFIGMAP;
|
||||
const isBasic = config.SelectedConfiguration.Kind === KubernetesConfigurationKinds.CONFIGMAP;
|
||||
|
||||
if (!config.Overriden) {
|
||||
const envKeys = _.keys(config.SelectedConfiguration.Data);
|
||||
|
|
|
@ -8,7 +8,7 @@ class KubernetesConfigurationHelper {
|
|||
return _.filter(applications, (app) => {
|
||||
let envFind;
|
||||
let volumeFind;
|
||||
if (config.Type === KubernetesConfigurationKinds.CONFIGMAP) {
|
||||
if (config.Kind === KubernetesConfigurationKinds.CONFIGMAP) {
|
||||
envFind = _.find(app.Env, { valueFrom: { configMapKeyRef: { name: config.Name } } });
|
||||
volumeFind = _.find(app.Volumes, { configMap: { name: config.Name } });
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue