Hello!
We are starting to look into how we will integrate deployment of container-based Datapower and physical appliances. We were planning to use the container-based deployment using the .cfg files for both the container and physical appliances. We use deployment policies in our current Datapower deployments so we can use the same base code and make necessary environmental changes via deployment policies.
We are assuming that a deployment using a domain.cfg file would not trigger the deployment policy, so how to we mimic this functionaly?
I was thinking in Openshift in the gatewayCluster CR I was given a tip to use the additionalInitCmds and additionalExe sections to create a script that can modify the config before it is applied to the pod. Essentially should we replicate our current appliance deployment policies in scripts (using sed in linux to edit) and put them into config maps?
I was thinking we would have 1 bash script in a config map per environment:
dev-gw-{domain}-deployment-policy - make dev specific updates to {domain}.cfg
asm-gw-{domain}-deployment-policy - make asm specific updates to {domain}.cfg
tst-gw-{domain}-deployment-policy - make tst specific updates to {domain}.cfg
and so on up to prd. Is this the best way?
------------------------------
Jennifer Stipe
------------------------------