Skip to content

Add ignore-paths to diff #117

@jcogilvie

Description

@jcogilvie

What problem are you facing?

When running argocd we get diffs like this:

  apiVersion: apiextensions.crossplane.io/v1
  kind: Composition
  metadata:
-   annotations:
-     argocd.argoproj.io/tracking-id: some-id
-     kubectl.kubernetes.io/last-applied-configuration: |
-       {... configuration here ...}
-   labels:
-     argocd.argoproj.io/instance: some-instance
+   labels:
      provider: aws
      service: kms
    name: composition.example.com

How could Crossplane help solve your problem?

Allow me to ignore certain paths when calculating the diff.

crossplane-diff comp composition.yaml --ignore-paths=metadata.annotations[argocd.argoproj.io/tracking-id],metadata.annotations[kubectl.kubernetes.io/last-applied-configuration],metadata.labels[argocd.argoproj.io/instance]

or similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions