Skip to content

Commit

Permalink
Update readme and preCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
atsaur committed Nov 15, 2023
1 parent 1ec7d0b commit 2cd3e9d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions validation-framework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* https://helm.sh/docs/intro/quickstart/
* gotpl
* https://github.com/Broadcom/gotpl-titans
* k8split
* https://github.com/brendanjryan/k8split

## Working directory
* All commands running under the same directory of this **README.md**
Expand Down
25 changes: 25 additions & 0 deletions validation-framework/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,31 @@ fi
opt3=$3

function preCheck {
if ! command -v docker-compose &> /dev/null
then
echo "docker-compose is required"
echo "See README.md for detail"
exit 1
fi
if ! command -v helm &> /dev/null
then
echo "helm tool is required"
echo "See README.md for detail"
exit 1
fi
if ! command -v gotpl &> /dev/null
then
echo "gotpl is required"
echo "See README.md for detail"
exit 1
fi
if ! command -v k8split &> /dev/null
then
echo "k8split is required"
echo "See README.md for detail"
exit 1
fi

if [ "$chartname" == "" ] && [ "$chartver" == "" ]; then
echo "Please specify your umbrella helm chart name and version, e.g."
echo "./build.sh icds-all-in-one 1.203.48"
Expand Down

0 comments on commit 2cd3e9d

Please sign in to comment.