mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
19 lines
654 B
Bash
Executable File
19 lines
654 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
|
|
CURRENT_PATH=$(cd "${PWD}">/dev/null || exit 1; pwd)
|
|
export CURRENT_PATH
|
|
export KUBERAY_HOME=${CURRENT_PATH}/../../
|
|
|
|
cd "$KUBERAY_HOME" || exit 1
|
|
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
|