From 3dad021f589f0ab89f5bc49fe156c830db082be7 Mon Sep 17 00:00:00 2001 From: desmax74 Date: Thu, 17 Mar 2022 18:46:40 +0100 Subject: [PATCH] RHPAM-3528 Signed-off-by: desmax74 --- pkg/controller/kieapp/defaults/defaults_test.go | 4 ++-- rhpam-config/7.12.1/common.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controller/kieapp/defaults/defaults_test.go b/pkg/controller/kieapp/defaults/defaults_test.go index 5b23ed068..f8201987e 100644 --- a/pkg/controller/kieapp/defaults/defaults_test.go +++ b/pkg/controller/kieapp/defaults/defaults_test.go @@ -7279,8 +7279,8 @@ func TestKieExecutorMDB(t *testing.T) { assert.NotNil(t, cr.Status.Applied.Objects.Servers[0].KieExecutorMDBMaxSession) mdbMaxSessionPassed := false for _, env := range env.Servers[0].DeploymentConfigs[0].Spec.Template.Spec.Containers[0].Env { - if strings.HasPrefix(env.Name, "JBOSS_KIE_EXECUTOR_MDB") { - if env.Name == "JBOSS_KIE_EXECUTOR_MDB_MAX_SESSIONS" && env.Value == "40" { + if strings.HasPrefix(env.Name, "KIE_EXECUTOR_MDB") { + if env.Name == "KIE_EXECUTOR_MDB_MAX_SESSIONS" && env.Value == "40" { mdbMaxSessionPassed = true } } diff --git a/rhpam-config/7.12.1/common.yaml b/rhpam-config/7.12.1/common.yaml index 83ef62195..ac00578b0 100644 --- a/rhpam-config/7.12.1/common.yaml +++ b/rhpam-config/7.12.1/common.yaml @@ -1100,7 +1100,7 @@ servers: #[[end]] ## CORS END #[[if .KieExecutorMDBMaxSession]] - - name: JBOSS_KIE_EXECUTOR_MDB_MAX_SESSIONS + - name: KIE_EXECUTOR_MDB_MAX_SESSIONS value: "[[.KieExecutorMDBMaxSession]]" #[[end]] livenessProbe: