Use a resource specification injection (RSI) webhook to inject an environment
variable that sets the time zone of the OpenPages application container.
Procedure
- Create a file named openpages_tz_env.json to declare an environment
variable named TZ that has a value of the time zone name in the format
Area/Location. For example, the following snippet declares the
TZ variable with the time zone for Sydney, Australia.
[
{
"name": "TZ",
"value": "Australia/Sydney"
}
]
- Save the openpages_tz_env.json file in the
cpd-cli-workspace path at
cpd-cli-workspace/olm-utils-workspace/work/rsi.
- Run the following command:
cpd-cli manage create-rsi-patch \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
--patch_name="openpages-tz" --description="Add TZ env to OpenPages container" \
--patch_type=rsi_pod_env_var --patch_spec=/tmp/work/rsi/openpages_tz_env.json \
--spec_format=set-env --include_labels=icpdsupport/addOnId:openpages \
--selector=icpdsupport/addOnId:openpages --skip_apply=false --state=active
- Verify that the OpenPages pods are restarting.