docker-openwisp
docker-openwisp copied to clipboard
[enchancement] Avoid repeating kubernetes configuration
Currently, the configurations in the kubernetes/ need to be repeated for every file that requires a specific value,
Example, the domain and IP addresses need to changed in 4 files, Config.yml, ExtServices.yml, Services.yml & Ingress.yml, this is not ideal and may cause different settings in different files.
Find some inspiration here: https://stackoverflow.com/questions/48296082/how-to-set-dynamic-values-with-kubernetes-yaml-file
Answer: https://stackoverflow.com/a/56240712/6410464
I think this can be solved using kustomize, it will enable us to not edit the original example files: https://github.com/kubernetes-sigs/kustomize/blob/master/examples/jsonpatch.md