Closed francescsanjuanmrf closed 1 year ago
Added modified YAMLs
I've just modified all the ServiceMonitors, but I haven't all of them deployed, and I haven't tested them. Initially, I only added the action field in one because I've just tested one.
Sure! I've just added the missing template.
Thanks for your help!
The
relabelings
block of theserviceMonitor
configuration for the query component does not include theaction
field.The default value for action is
replace
.Having this field undefined makes ArgoCD always unsynced.
The definitions in this repo code lack the
action
field, but when the object is created in Kubernetes, the field is written in the Kubernetes object with the default value (replace
). Then, ArgoCD compares with the code in the repo and tries to sync again (removing theaction
field). This causes an infinite loop of adding and removing theaction
field.Setting the
action
field to the default value (replace
) in the code solves this problem and does not change the behavior ofserviceMonitor
.Changes
Verification
I've tested it by modifying the chart and testing locally.