mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
* update ct script * split long command * Update DEVELOPMENT.md Signed-off-by: jasoonn <[email protected]> Signed-off-by: jasoonn <[email protected]> Co-authored-by: Ubuntu <azureuser@Ubuntu.pqxb1uggpgbehcpt4orv5untcb.rx.internal.cloudapp.net>
18 lines
611 B
Bash
Executable File
18 lines
611 B
Bash
Executable File
#!/usr/bin/env bash
|
|
if [ -L ${BASH_SOURCE-$0} ]; then
|
|
PWD=$(dirname $(readlink "${BASH_SOURCE-$0}"))
|
|
else
|
|
PWD=$(dirname ${BASH_SOURCE-$0})
|
|
fi
|
|
export CURRENT_PATH=$(cd "${PWD}">/dev/null; pwd)
|
|
export KUBERAY_HOME=${CURRENT_PATH}/../../
|
|
|
|
cd $KUBERAY_HOME
|
|
if [ "$#" == 1 ] && [ "$1" == "local" ]; then
|
|
ct lint --all --chart-dirs helm-chart/ --validate-maintainers=false
|
|
else
|
|
docker run -it --network host --workdir=/data --volume ~/.kube/config:/root/.kube/config:ro \
|
|
--volume $(pwd):/data quay.io/helmpack/chart-testing:v3.5.0 \
|
|
ct lint --all --chart-dirs helm-chart/ --validate-maintainers=false
|
|
fi
|