Skip to content

Commit

Permalink
US-600953 : heapDumpPath parameter , POD_NAME in env for pega deploym…
Browse files Browse the repository at this point in the history
…ents (#736)

* US-600953 : expose new parameter for heapDumpPath , POD_NAME env var to pega deployments

* fix go tests
  • Loading branch information
pega-Abhinav authored Apr 30, 2024
1 parent 412de79 commit 7253b1b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/pega/templates/_pega-deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ spec:
value: {{ .nodeType }}
- name: PEGA_APP_CONTEXT_PATH
value: {{ template "pega.applicationContextPath" . }}
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
{{- if .node.requestor }}
- name: REQUESTOR_PASSIVATION_TIMEOUT
value: "{{ .node.requestor.passivationTimeSec }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/pega/templates/pega-environment-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ data:
# CustomerData schema of the Pega installation
CUSTOMERDATA_SCHEMA: {{ .Values.global.jdbc.customerDataSchema }}
{{- end }}
{{- if .Values.global.heapDumpPath }}
# Custom value for HeapDumpPath
HEAP_DUMP_PATH: {{ .Values.global.heapDumpPath }}
{{- end }}
{{- if and (.Values.pegasearch.externalSearchService) (not (.Values.pegasearch.srsAuth).enabled) }}
# Search deployment type so that the engine knows to connect to the search service
PEGA_SEARCH_TYPE: "ExternalSearchService"
Expand Down
2 changes: 2 additions & 0 deletions terratest/src/test/pega/pega-tier-deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ func VerifyDeployment(t *testing.T, pod *k8score.PodSpec, expectedSpec pegaDeplo
envIndex++
require.Equal(t, "PEGA_APP_CONTEXT_PATH", pod.Containers[0].Env[envIndex].Name)
require.Equal(t, "prweb", pod.Containers[0].Env[envIndex].Value)
envIndex++
require.Equal(t, "POD_NAME", pod.Containers[0].Env[envIndex].Name)
if expectedSpec.name == getObjName(options, "-web") || expectedSpec.name == getObjName(options, "-stream") {
envIndex++
require.Equal(t, "REQUESTOR_PASSIVATION_TIMEOUT", pod.Containers[0].Env[envIndex].Name)
Expand Down

0 comments on commit 7253b1b

Please sign in to comment.