Closed rohit-gohri closed 3 months ago
If something like this needs to be tracked then it should be created using post-install
hooks in helm - https://helm.sh/docs/topics/charts_hooks/ so that it actually runs only on install and not upgrades/diffs
Hi @rohit-gohri - Thanks for bringing this to our attention. For my understanding, what is the consequence/issue with this value being different every time helm diff is run? I raised this internally to see how we can provide an option or work around this.
@CharlyF also for those using ArgoCD or Flux this causes that application to show diff (out of sync) with the desired state (git). This causes sync loops.
We use pulumi to manage our helm chart deployments and ran into this issue as well. Every time we plan/apply changes, the ConfigMap's items show a diff.
Best I can tell, this is related to the single step instrumentation APM feature that is disabled by default: https://github.com/DataDog/helm-charts/pull/1263. The author mentions these environment variables being required regardless of the feature's status, but doesn't mention why.
In our case we can use some pulumi magic to override the data in the ConfigMap so it remains constant, but it's not clear if that will cause any problems.
```go Transformations: []yaml.Transformation{ func(state map[string]interface{}, opts ...pulumi.ResourceOption) { name := state["metadata"].(map[string]interface{})["name"] if state["kind"] == "ConfigMap" && name == "datadog-kpi-telemetry-configmap" { data := state["data"].(map[string]interface{}) // These values in the configmap are used by a beta APM // feature (Single Step Instrumentation) that is disabled, // so we'll set them to arbitrary values. data["install_id"] = "00000000-0000-0000-0000-000000000000" // `uuidgen` data["install_time"] = "000000000 " // `date +%s` } }, }, ```
I have the same problem, this is causing a lot of noise in our helm pipelines, making it hard to see real changes, also what is even the value of having this updated every time helm upgrade/install/template/diff is run?
Describe what happened: Upon upgrading to chart version 3.51.2 every time my CI runs helm-diff plugin it shows a new diff. This is similar to #512 but I don't see any way to disable this:
Describe what you expected: I expect the helm chart's rendered output to be static.
Steps to reproduce the issue: Install the helm chart and run helm diff
Additional environment details (Operating System, Cloud provider, etc):