Skip to content

Commit

Permalink
Merge pull request #378 from errantepiphany/BAPL-1507_master
Browse files Browse the repository at this point in the history
[BAPL-1507] remove ContainerCoreLimit and ContainerMaxMemory
  • Loading branch information
openshift-merge-robot committed Feb 24, 2020
2 parents 66fa047 + 2e0847c commit c8646f7
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 52 deletions.
16 changes: 0 additions & 16 deletions config/7.7.0/common.yaml
Expand Up @@ -225,14 +225,6 @@ console:
- name: JAVA_DEBUG_PORT
value: "[[.Console.Jvm.JavaDebugPort]]"
#[[end]]
#[[if .Console.Jvm.ContainerCoreLimit]]
- name: CONTAINER_CORE_LIMIT
value: "[[.Console.Jvm.ContainerCoreLimit]]"
#[[end]]
#[[if .Console.Jvm.ContainerMaxMemory]]
- name: CONTAINER_MAX_MEMORY
value: "[[.Console.Jvm.ContainerMaxMemory]]"
#[[end]]
#[[if .Console.Jvm.GcMinHeapFreeRatio]]
- name: GC_MIN_HEAP_FREE_RATIO
value: "[[.Console.Jvm.GcMinHeapFreeRatio]]"
Expand Down Expand Up @@ -775,14 +767,6 @@ servers:
- name: JAVA_DEBUG_PORT
value: "[[.Jvm.JavaDebugPort]]"
#[[end]]
#[[if .Jvm.ContainerCoreLimit]]
- name: CONTAINER_CORE_LIMIT
value: "[[.Jvm.ContainerCoreLimit]]"
#[[end]]
#[[if .Jvm.ContainerMaxMemory]]
- name: CONTAINER_MAX_MEMORY
value: "[[.Jvm.ContainerMaxMemory]]"
#[[end]]
#[[if .Jvm.GcMinHeapFreeRatio]]
- name: GC_MIN_HEAP_FREE_RATIO
value: "[[.Jvm.GcMinHeapFreeRatio]]"
Expand Down
16 changes: 0 additions & 16 deletions deploy/crds/kieapp.crd.yaml
Expand Up @@ -211,14 +211,6 @@ spec:
type: integer
format: int32
description: Port used for remote debugging. Defaults to 5005. e.g. '8787'
containerCoreLimit:
type: integer
format: int32
description: A calculated core limit as described in https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. e.g. '2'
containerMaxMemory:
type: integer
format: int32
description: Memory limit given to the container. e.g. '1024'
gcMinHeapFreeRatio:
type: integer
format: int32
Expand Down Expand Up @@ -589,14 +581,6 @@ spec:
type: integer
format: int32
description: Port used for remote debugging. Defaults to 5005. e.g. '8787'
containerCoreLimit:
type: integer
format: int32
description: A calculated core limit as described in https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. e.g. '2'
containerMaxMemory:
type: integer
format: int32
description: Memory limit given to the container. e.g. '1024'
gcMinHeapFreeRatio:
type: integer
format: int32
Expand Down
2 changes: 0 additions & 2 deletions pkg/apis/app/v2/kieapp_types.go
Expand Up @@ -182,8 +182,6 @@ type JvmObject struct {
JavaDiagnostics *bool `json:"javaDiagnostics,omitempty"`
JavaDebug *bool `json:"javaDebug,omitempty"`
JavaDebugPort *int32 `json:"javaDebugPort,omitempty"`
ContainerCoreLimit *int32 `json:"containerCoreLimit,omitempty"`
ContainerMaxMemory *int32 `json:"containerMaxMemory,omitempty"`
GcMinHeapFreeRatio *int32 `json:"gcMinHeapFreeRatio,omitempty"`
GcMaxHeapFreeRatio *int32 `json:"gcMaxHeapFreeRatio,omitempty"`
GcTimeRatio *int32 `json:"gcTimeRatio,omitempty"`
Expand Down
10 changes: 0 additions & 10 deletions pkg/apis/app/v2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions pkg/controller/kieapp/defaults/defaults_test.go
Expand Up @@ -629,8 +629,6 @@ func createJvmTestObject() *api.JvmObject {
JavaDiagnostics: Pbool(true),
JavaDebug: Pbool(true),
JavaDebugPort: Pint32(8787),
ContainerCoreLimit: Pint32(2),
ContainerMaxMemory: Pint32(1024),
GcMinHeapFreeRatio: Pint32(20),
GcMaxHeapFreeRatio: Pint32(40),
GcTimeRatio: Pint32(4),
Expand Down Expand Up @@ -665,12 +663,6 @@ func testJvmEnv(t *testing.T, envs []corev1.EnvVar) {
case "JAVA_DEBUG_PORT":
assert.Equal(t, "8787", env.Value)

case "CONTAINER_CORE_LIMIT":
assert.Equal(t, "2", env.Value)

case "CONTAINER_MAX_MEMORY":
assert.Equal(t, "1024", env.Value)

case "GC_MIN_HEAP_FREE_RATIO":
assert.Equal(t, "20", env.Value)

Expand Down

0 comments on commit c8646f7

Please sign in to comment.