helm-diff icon indicating copy to clipboard operation
helm-diff copied to clipboard

invalid ownership metadata

Open kfirfer opened this issue 3 years ago • 3 comments

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 ?

kfirfer avatar Aug 26 '22 00:08 kfirfer

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?

hoangminhtu-dh avatar Sep 16 '22 17:09 hoangminhtu-dh

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

kfirfer avatar Jan 18 '23 21:01 kfirfer

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.

stale[bot] avatar May 21 '23 20:05 stale[bot]