initCmds

Description

The initCmds property is an array of strings that represent initialization commands that you wish to run prior to the DataPower process starting. These commands will be run after the DataPower Operator internal initialization scripts, but before the DataPower start.sh script.

This property can be used in conjunction with the extraExe property to run custom initialization scripts that you've added to the DataPower pod(s), or any custom sidecar processes you wish to run in the DataPower containers.

Example

apiVersion: datapower.ibm.com/v1beta3
kind: DataPowerService
metadata:
  name: example-dpservice
spec:
  initCmds:
  - /usr/local/extra/test.sh
  - ls -al /opt/ibm/datapower/drouter/config
  ...