Exclude kubenix hashes in manifest diff

This commit is contained in:
Pim Kunis 2024-10-17 21:01:12 +02:00
parent 8c02a9b627
commit 6150b95988

View file

@ -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