OpenTelemetry Collector CRD (spec.config) changes not reflected in cluster — potential schema/diffing implications with GitOps tools?
#15230
Replies: 2 comments
-
|
Hi @Iamkishore486! This is a known behaviour with how the OpenTelemetry Operator The root cause is that Why force-sync works: It bypasses the diff check and applies the full manifest Recommended workarounds:
metadata:
annotations:
rollout-timestamp: "2026-05-10T10:00:00Z"
The correct long-term fix would be for the operator's CRD to use a more Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Cloud-Architect-Emma Thank you for the response. I performed some additional testing based on your observations and noticed the following behaviour: When changes are made at the spec.config level, Argo CD is able to detect the differences and successfully sync the resource. While reviewing the CRD, I also observed that the following fields are configured with x-kubernetes-preserve-unknown-fields: true. Before I proceed with the suggested workaround recommendations, I would appreciate a clearer explanation of why changes at the spec.config level are still being detected correctly, even though this path/field itself also has x-kubernetes-preserve-unknown-fields: true configured. spec.config |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I’m working with the OpenTelemetry Operator and managing the OpenTelemetryCollector resource via GitOps (Argo CD + Helm).
I’m observing unexpected behaviour where updates to nested fields under spec.config are not being reflected in the cluster, even though the rendered manifests clearly include the changes.
Problem Description
I updated a nested configuration value inside the collector spec:
Observed Behavior
kubectl get opentelemetrycollector <name> -o yamlAdditional Observations
Important Clarifications
Questions
Why This Matters
In GitOps-driven environments:
Current behavior leads to:
Thanks in advance for the support
Beta Was this translation helpful? Give feedback.
All reactions