Replies: 4 comments 2 replies
-
you may be looking for resource exclusions https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#resource-exclusioninclusion |
Beta Was this translation helpful? Give feedback.
-
Did you find a solution for this @mike-code |
Beta Was this translation helpful? Give feedback.
-
I'm also looking for a way to ignore differences on ConfigMaps. ArgoCD just seems to ignore my |
Beta Was this translation helpful? Give feedback.
-
you can ignore specific key in configMap data section, for example if you have: apiVersion: v1
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
data:
Corefile: |
...
redated
...
NodeHosts: |
192.168.1.10 some-host-1
192.168.1.11 some-host-2 then you can ignore ignoreDifferences:
- group: '*'
kind: ConfigMap
jqPathExpressions:
- .data.NodeHosts |
Beta Was this translation helpful? Give feedback.
-
Question
I have a few
ConfigMap
s that are updated by one of the k8s jobs and I want ArgoCD to propagate them when the application is deployed but do not sync them further if they change in the meantime.I figured I can use ignore differences to achieve that, but it won't do the job.
Yamls
Here's my application manifest
Config Map that ArgoCD deploys
ConfigMap that some k8s job crafted
Steps
Now if I run
the BAR value will be reverted back to
1
even though I wanted it to stay42
.Bonus question
Can I achieve it through ConfigMap annotations rather than
ignoreDifferences
property in theApplication
's yaml?Beta Was this translation helpful? Give feedback.
All reactions