Skip to content

Commit

Permalink
RHPAM-3528
Browse files Browse the repository at this point in the history
Signed-off-by: desmax74 <[email protected]>
  • Loading branch information
desmax74 committed Mar 17, 2022
1 parent 68d51c5 commit 6e149e5
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 62 deletions.
25 changes: 12 additions & 13 deletions deploy/crds/kieapp.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1629,12 +1629,12 @@ spec:
set, or for multiple sets if deployments is set to >1
properties:
KieExecutorMDBMaxSession:
description: 'KieExecutorMDBMaxSession number of max KIE
Executor sessions, it must be lower than the value of
max-pool-size, by default is max-pool-size set to 60.
Max pool size can be set by system property jboss.mdb.strict.max.pool.size
(using javaOptsAppend: "-Djboss.mdb.strict.max.pool.size=40"),
for more information see https://access.redhat.com/solutions/2955481.'
description: 'number of max KIE Executor sessions, it must
be lower than the value of max-pool-size, by default is
max-pool-size set to 60. Max pool size can be set by system
property jboss.mdb.strict.max.pool.size (using javaOptsAppend:
"-Djboss.mdb.strict.max.pool.size=40"), for more information
see https://access.redhat.com/solutions/2955481.'
type: integer
build:
description: KieAppBuildObject Data to define how to build
Expand Down Expand Up @@ -4507,13 +4507,12 @@ spec:
to >1
properties:
KieExecutorMDBMaxSession:
description: 'KieExecutorMDBMaxSession number of max
KIE Executor sessions, it must be lower than the value
of max-pool-size, by default is max-pool-size set
to 60. Max pool size can be set by system property
jboss.mdb.strict.max.pool.size (using javaOptsAppend:
"-Djboss.mdb.strict.max.pool.size=40"), for more information
see https://access.redhat.com/solutions/2955481.'
description: 'number of max KIE Executor sessions, it
must be lower than the value of max-pool-size, by
default is max-pool-size set to 60. Max pool size
can be set by system property jboss.mdb.strict.max.pool.size
(using javaOptsAppend: "-Djboss.mdb.strict.max.pool.size=40"),
for more information see https://access.redhat.com/solutions/2955481.'
type: integer
build:
description: KieAppBuildObject Data to define how to
Expand Down
25 changes: 12 additions & 13 deletions deploy/olm-catalog/dev/7.12.1-1/manifests/kieapp.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1629,12 +1629,12 @@ spec:
set, or for multiple sets if deployments is set to >1
properties:
KieExecutorMDBMaxSession:
description: 'KieExecutorMDBMaxSession number of max KIE
Executor sessions, it must be lower than the value of
max-pool-size, by default is max-pool-size set to 60.
Max pool size can be set by system property jboss.mdb.strict.max.pool.size
(using javaOptsAppend: "-Djboss.mdb.strict.max.pool.size=40"),
for more information see https://access.redhat.com/solutions/2955481.'
description: 'number of max KIE Executor sessions, it must
be lower than the value of max-pool-size, by default is
max-pool-size set to 60. Max pool size can be set by system
property jboss.mdb.strict.max.pool.size (using javaOptsAppend:
"-Djboss.mdb.strict.max.pool.size=40"), for more information
see https://access.redhat.com/solutions/2955481.'
type: integer
build:
description: KieAppBuildObject Data to define how to build
Expand Down Expand Up @@ -4507,13 +4507,12 @@ spec:
to >1
properties:
KieExecutorMDBMaxSession:
description: 'KieExecutorMDBMaxSession number of max
KIE Executor sessions, it must be lower than the value
of max-pool-size, by default is max-pool-size set
to 60. Max pool size can be set by system property
jboss.mdb.strict.max.pool.size (using javaOptsAppend:
"-Djboss.mdb.strict.max.pool.size=40"), for more information
see https://access.redhat.com/solutions/2955481.'
description: 'number of max KIE Executor sessions, it
must be lower than the value of max-pool-size, by
default is max-pool-size set to 60. Max pool size
can be set by system property jboss.mdb.strict.max.pool.size
(using javaOptsAppend: "-Djboss.mdb.strict.max.pool.size=40"),
for more information see https://access.redhat.com/solutions/2955481.'
type: integer
build:
description: KieAppBuildObject Data to define how to
Expand Down
25 changes: 12 additions & 13 deletions deploy/olm-catalog/prod/7.12.1-1/manifests/kieapp.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1629,12 +1629,12 @@ spec:
set, or for multiple sets if deployments is set to >1
properties:
KieExecutorMDBMaxSession:
description: 'KieExecutorMDBMaxSession number of max KIE
Executor sessions, it must be lower than the value of
max-pool-size, by default is max-pool-size set to 60.
Max pool size can be set by system property jboss.mdb.strict.max.pool.size
(using javaOptsAppend: "-Djboss.mdb.strict.max.pool.size=40"),
for more information see https://access.redhat.com/solutions/2955481.'
description: 'number of max KIE Executor sessions, it must
be lower than the value of max-pool-size, by default is
max-pool-size set to 60. Max pool size can be set by system
property jboss.mdb.strict.max.pool.size (using javaOptsAppend:
"-Djboss.mdb.strict.max.pool.size=40"), for more information
see https://access.redhat.com/solutions/2955481.'
type: integer
build:
description: KieAppBuildObject Data to define how to build
Expand Down Expand Up @@ -4507,13 +4507,12 @@ spec:
to >1
properties:
KieExecutorMDBMaxSession:
description: 'KieExecutorMDBMaxSession number of max
KIE Executor sessions, it must be lower than the value
of max-pool-size, by default is max-pool-size set
to 60. Max pool size can be set by system property
jboss.mdb.strict.max.pool.size (using javaOptsAppend:
"-Djboss.mdb.strict.max.pool.size=40"), for more information
see https://access.redhat.com/solutions/2955481.'
description: 'number of max KIE Executor sessions, it
must be lower than the value of max-pool-size, by
default is max-pool-size set to 60. Max pool size
can be set by system property jboss.mdb.strict.max.pool.size
(using javaOptsAppend: "-Djboss.mdb.strict.max.pool.size=40"),
for more information see https://access.redhat.com/solutions/2955481.'
type: integer
build:
description: KieAppBuildObject Data to define how to
Expand Down
25 changes: 12 additions & 13 deletions deploy/olm-catalog/test/7.12.1-1/manifests/kieapp.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1629,12 +1629,12 @@ spec:
set, or for multiple sets if deployments is set to >1
properties:
KieExecutorMDBMaxSession:
description: 'KieExecutorMDBMaxSession number of max KIE
Executor sessions, it must be lower than the value of
max-pool-size, by default is max-pool-size set to 60.
Max pool size can be set by system property jboss.mdb.strict.max.pool.size
(using javaOptsAppend: "-Djboss.mdb.strict.max.pool.size=40"),
for more information see https://access.redhat.com/solutions/2955481.'
description: 'number of max KIE Executor sessions, it must
be lower than the value of max-pool-size, by default is
max-pool-size set to 60. Max pool size can be set by system
property jboss.mdb.strict.max.pool.size (using javaOptsAppend:
"-Djboss.mdb.strict.max.pool.size=40"), for more information
see https://access.redhat.com/solutions/2955481.'
type: integer
build:
description: KieAppBuildObject Data to define how to build
Expand Down Expand Up @@ -4507,13 +4507,12 @@ spec:
to >1
properties:
KieExecutorMDBMaxSession:
description: 'KieExecutorMDBMaxSession number of max
KIE Executor sessions, it must be lower than the value
of max-pool-size, by default is max-pool-size set
to 60. Max pool size can be set by system property
jboss.mdb.strict.max.pool.size (using javaOptsAppend:
"-Djboss.mdb.strict.max.pool.size=40"), for more information
see https://access.redhat.com/solutions/2955481.'
description: 'number of max KIE Executor sessions, it
must be lower than the value of max-pool-size, by
default is max-pool-size set to 60. Max pool size
can be set by system property jboss.mdb.strict.max.pool.size
(using javaOptsAppend: "-Djboss.mdb.strict.max.pool.size=40"),
for more information see https://access.redhat.com/solutions/2955481.'
type: integer
build:
description: KieAppBuildObject Data to define how to
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/app/v2/kieapp_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ type KieServerSet struct {
Kafka *KafkaExtObject `json:"kafka,omitempty"`
KafkaJbpmEventEmitters *KafkaJBPMEventEmittersObject `json:"kafkaJbpmEventEmitters,omitempty"`
Cors *CORSFiltersObject `json:"cors,omitempty"`
// KieExecutorMDBMaxSession number of max KIE Executor sessions, it must be lower than the value of max-pool-size, by default is max-pool-size set to 60. Max pool size can be set by system property jboss.mdb.strict.max.pool.size (using javaOptsAppend: "-Djboss.mdb.strict.max.pool.size=40"), for more information see https://access.redhat.com/solutions/2955481.
// number of max KIE Executor sessions, it must be lower than the value of max-pool-size, by default is max-pool-size set to 60. Max pool size can be set by system property jboss.mdb.strict.max.pool.size (using javaOptsAppend: "-Djboss.mdb.strict.max.pool.size=40"), for more information see https://access.redhat.com/solutions/2955481.
KieExecutorMDBMaxSession *int `json:"KieExecutorMDBMaxSession,omitempty"`
}

Expand Down
10 changes: 1 addition & 9 deletions pkg/controller/kieapp/defaults/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7277,15 +7277,7 @@ func TestKieExecutorMDB(t *testing.T) {
assert.Nil(t, err, "Error getting TestKieExecutorMDB environment")

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, "KIE_EXECUTOR_MDB") {
if env.Name == "KIE_EXECUTOR_MDB_MAX_SESSIONS" && env.Value == "40" {
mdbMaxSessionPassed = true
}
}
}
assert.True(t, mdbMaxSessionPassed)
assert.Equal(t, "40", getEnvVariable(env.Servers[0].DeploymentConfigs[0].Spec.Template.Spec.Containers[0], "KIE_EXECUTOR_MDB_MAX_SESSIONS"))
}

func TestKieExecutorMDBEmpty(t *testing.T) {
Expand Down

0 comments on commit 6e149e5

Please sign in to comment.