Overriding DataPowerService spec properties

Use the dataPowerServiceSpecOverride to configure DataPowerService spec-level properties.

Configure the spec.dataPowerServiceSpecOverride section in your gateway CR to set DataPowerService properties.

  1. Edit your gateway CR:
    kubectl edit GatewayCluster
  2. Add the dataPowerServiceSpecOverride section to the spec section (if it does not exist), and configure the properties as required.
Sample configurations:
  • Specify a new environment:
    spec:
      dataPowerServiceSpecOverride:
        env:
        - name: TEST_ENV
          value: "true"
  • Add new initCmds:
    spec:
      dataPowerServiceSpecOverride:
        initCmds:
        - ls -al /opt/ibm/datapower/drouter/config
If you are using the OpenShift top-level CR, then add the dataPowerServiceSpecOverride section to spec.gateway.