Is there a way I can pass external environment variable to kustomization.yaml from Skaffold.
Assuming i have a kustomization file below
resources:
- ./deployment.yaml
- ./service.yaml
images:
- name: abc
newName: <external environment>
newTag: <external environment>
I have environment exported with Image name and tag and would like to pass into the kustomization.yaml when executing skaffold deploy or dev
Is there a way to do this or if any solution or workaround to pass an external environment variable into kustomization.yaml ?
I know i can actually use kustomize edit set image but is ugly because i need to get the old image name to set which I try to avoid. I wanted a simpler solution. I couldn't find any where that says kustomize can use environtment variable from system like docker-compose that uses ${VAR} or skaffold that uses {{.VAR}} when trying to access system environment variable