Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support post gen edpm kustomize scripts
This patch introduces a mechanism to run an arbitrary script on the `edpm_deploy_prep` target after the `kustomization.yaml` file has been created by the `gen-edpm-kustomize.sh` script. This provides a flexible mechanism to modify things in the kustomization that are not currently possible. An example is to use a different ansible host for deployment than the IP that will be used as the `ctlplane` network IP. The variable used to define the location of the script is `EDPM_POST_GEN_SCRIPT`. Example of usage: ``` $ make edpm_deploy \ DATAPLANE_POST_GEN_SCRIPT="$(realpath ./scripts/change-ansible-hosts.sh)" ``` And the contents of `change-ansible-hosts.sh` are: ``` sed -i "s/value: 192.168.122.100/value: 192.168.1.13/" kustomization.yaml ```
- Loading branch information