charts/hack/gen-helmdocsignore.sh
ᗪєνιη ᗷυнʟ 5ba6779f0e
Add Helm Docs (#595)
2021-02-17 17:43:56 -05:00

17 lines
373 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
#
# Generate .helmdocsignore for excluding non-common based helm charts
#
# shellcheck disable=SC2155
export REPO_ROOT=$(git rev-parse --show-toplevel)
grep -L -r "\- name\: common" ./charts/**/Chart.yaml \
| sed 's|\.\/\(.*\)/Chart.yaml|\1|' \
| grep -v "common" \
> .helmdocsignore
echo "charts/common-test" >> .helmdocsignore