GoogleCloudPlatform/microservices-demo

Improve substitution of variables in Kustomize components

bourgeoisor opened this issue · 0 comments

Kustomize components (like alloydb and shopping-assistant) rely on some dynamic variables to be substituted. We currently rely on sed but that is not best practices. Additionally, sed behaviour can change depending on the user's OS.

Let's thinking about how we can improve this flow.

Example: https://github.com/GoogleCloudPlatform/microservices-demo/blob/main/kustomize/components/shopping-assistant/scripts/1_deploy_alloydb_infra.sh#L91-L112