Skip to content

Commit

Permalink
US-533044 - Helm chart changes for hz settings to be passed to instal…
Browse files Browse the repository at this point in the history
…ler (#589)

* US-533044 - Helm chart changes for hz setting to be passed to installer
  • Loading branch information
Saurabh-16 authored Jul 3, 2023
1 parent ec0b57e commit 1118d2b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,6 @@ bypass.load.assembled.classes={{ .Env.BYPASS_LOAD_ASSEMBLED_CLASSES }}
# Enable adminstrator user after upgrade by default.
upgrade.enable.admin=true

custom.jvm.args={{ .Env.CUSTOM_JVM_ARGS }}

{{ .Env.ADVANCED_SETTINGS }}
17 changes: 17 additions & 0 deletions charts/pega/charts/installer/templates/_pega-installer-job.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,23 @@ spec:
env:
- name: ACTION
value: {{ .action }}
{{- if (eq .root.Values.upgrade.isHazelcastClientServer "true") }}
- name: HZ_VERSION
valueFrom:
configMapKeyRef:
name: {{ template "pegaEnvironmentConfig" }}
key: HZ_VERSION
- name: HZ_CLUSTER_NAME
valueFrom:
configMapKeyRef:
name: {{ template "pegaEnvironmentConfig" }}
key: HZ_CLUSTER_NAME
- name: HZ_SERVER_HOSTNAME
valueFrom:
configMapKeyRef:
name: {{ template "pegaEnvironmentConfig" }}
key: HZ_SERVER_HOSTNAME
{{- end }}
envFrom:
- configMapRef:
name: {{ template "pegaUpgradeEnvironmentConfig" }}
Expand Down
3 changes: 3 additions & 0 deletions charts/pega/charts/installer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ upgrade:
runRulesetCleanup: "false"
# Rebuild Database Rules Indexes after Rules Load to improve Database Access Performance
rebuildIndexes: "false"
# This flag has to be set for CMC use cases if hazelcast is running in client server mode. Default is false.Set it to true for HZ c/s mode.
# This is needed to ensure Installer connect to HZ C/S while data upgrade.
isHazelcastClientServer: "false"
# Specify the server URL and the required server username and password to access a Pega REST server used to perform pre- and post-update actions during zero-downtime updates.
pegaRESTServerURL: ""
pegaRESTUsername: ""
Expand Down
2 changes: 2 additions & 0 deletions terratest/src/test/pega/data/expectedSetupdatabase.properties
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,6 @@ bypass.load.assembled.classes={{ .Env.BYPASS_LOAD_ASSEMBLED_CLASSES }}
# Enable adminstrator user after upgrade by default.
upgrade.enable.admin=true

custom.jvm.args={{ .Env.CUSTOM_JVM_ARGS }}

{{ .Env.ADVANCED_SETTINGS }}

0 comments on commit 1118d2b

Please sign in to comment.