Open AbstractVersion opened 4 months ago
LOVELY_KUSTOMIZE_PATCH
is patching the kustomization.yaml
file.
It can do what you want, but you need to write the correct patch. Start by writing what you need into a kustomization.yaml
without the patching happening. This will need to identify the object needed to be patched (an ingress). You can then convert this into an appropriate patch.
What you have written there is patching kustomization.yaml as though it were the ingress object.
I am trying to set a dynamic configuration of manifests using Argocd, kustomize, helm and the lovely plugin. For example want to dynamically change the host of an ingress resource.
This is a reference kustomization file that uses grafana helm chart:
I would like to dynamically configure the ingress host name through the argo application or application set. I saw on the docs that I can use
LOVELY_KUSTOMIZE_PATCH
env variable to set kustomization patches. My issue is that I cant understand how to define the target resource (eg. kind :Ingress, name: grafana-ingress). An example Argocd Application is the followingThe problem with the above application is that I don't see how can I reference the Ingress resource and naturally argocd throws an error of :
I might not be in the right path to do this, so any suggestions would be much appreciated.
Thanks in advance.