Skip to content

Commit

Permalink
Merge pull request #8 from Ramilito/fix/simplify-del
Browse files Browse the repository at this point in the history
using key lookup instead, ignore argo key
  • Loading branch information
Ramilito authored Dec 2, 2023
2 parents 424efe5 + 4fa924e commit a542a3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assets/diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ find "$@" -type f -exec yq e -i 'del(
.webhooks,
.data,
.spec.caBundle,
.metadata.annotations == with_entries(select(.key == "kubectl.kubernetes.io/last-applied-configuration"))
.metadata.annotations["kubectl.kubernetes.io/last-applied-configuration"],
.metadata.annotations["argocd.argoproj.io/tracking-id"]
)' {} \;

diff "${DIFF_ARGS[@]}" "$@" | awk '!/^diff/ {if ($1 ~ /(---|\+\+\+)/) {print $1, $2} else {print $0}}'

0 comments on commit a542a3b

Please sign in to comment.