docker-postfix/helm/tests.sh
2023-02-09 09:02:28 +01:00

15 lines
466 B
Bash
Executable file

#!/usr/bin/env bash
set -e
mkdir -p fixtures
FIND="find"
# Brew installs GNU find as "gfind" by default
if command -v gfind >/dev/null 2>&2; then
FIND="$(which gfind)"
fi
for i in `${FIND} -maxdepth 1 -type f -name test\*yml | sort`; do
echo "☆☆☆☆☆☆☆☆☆☆ $i ☆☆☆☆☆☆☆☆☆☆"
helm template -f $i --dry-run mail > fixtures/demo.yaml
docker run -it -v `pwd`/fixtures:/fixtures garethr/kubeval fixtures/demo.yaml
done