You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 following
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 following
The 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.
The text was updated successfully, but these errors were encountered: