Skip to content

--three-way-merge produces useless diff on meta.helm.sh annotations #326

Closed
@mumoshu

Description

@mumoshu

Running diff upgrade --three-way-merge added via #304 on an unchanged release produces diffs on meta.helm.sh/release-name and meta.helm.sh/release-namespace. I guess this should be omitted from the diff as it's added automatically by helm AND running helm upgrade won't actually remove those annotations.

$ HELM_NAMESPACE=default HELM_BIN=helm372 ./helm-diff upgrade envoy1 stable/envoy --three-way-merge
default, envoy, Service (v1) has changed:
  apiVersion: v1
  kind: Service
  metadata:
-   annotations:
-     meta.helm.sh/release-name: envoy1
-     meta.helm.sh/release-namespace: default
    creationTimestamp: "2022-01-08T11:00:49Z"
    labels:
      app: envoy
      app.kubernetes.io/managed-by: Helm
      chart: envoy-1.9.4
      heritage: Helm
      release: envoy1

@luxurine @Temikus Have you experienced this? Would you agree that this should be fixed somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions