From 6150b959886998323f5aaa7c66487a22a95eef0b Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Thu, 17 Oct 2024 21:01:12 +0200 Subject: [PATCH] Exclude kubenix hashes in manifest diff --- applyset-deploy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/applyset-deploy.sh b/applyset-deploy.sh index adaea82..81bc8dc 100644 --- a/applyset-deploy.sh +++ b/applyset-deploy.sh @@ -14,7 +14,11 @@ set +e if [ -z "$previous_manifest" ]; then echo No previous manifest found! else - $DYFF between --set-exit-code <(echo $previous_manifest) $MANIFEST + $DYFF between <(echo $previous_manifest) $MANIFEST \ + --exclude-regexp metadata.labels.kubenix/hash \ + --exclude-regexp labels.kubenix/hash \ + --set-exit-code + if [ $? -eq 0 ]; then exit 0 fi