invalid ownership metadata
Hello
When im trying to run diff command:
helm diff upgrade --allow-unreleased datadog datadog/datadog --version 2.35.0 --namespace datadog
Im getting this error:
********************
Release was not present in Helm. Diff will show entire contents as new.
********************
Error: Failed to render chart: exit status 1: Error: rendered manifests contain a resource that already exists. Unable to continue with install: ServiceAccount "datadog-cluster-agent" in namespace "datadog" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "datadog"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "datadog"
Error: plugin "diff" exited with error
What I do wrong ?
You have existing K8s resources of the same name on your cluster. Have you tried annotating and labeling them accordingly as per https://stackoverflow.com/questions/62964532/helm-not-creating-the-resources?
Im using helm templating without the annotations but it would be great to have an argument flag that says to helm diff to make a diff regardless of the helm annotations to diff live objects instead the releases
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.