Commit 3c536f7
committed
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
```1 parent f137573 commit 3c536f7
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| 835 | + | |
835 | 836 | | |
836 | 837 | | |
837 | 838 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
225 | 229 | | |
0 commit comments