File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,30 @@ val helmDocs by
203203 runShellScript(
204204 """
205205 set -e
206+
207+ echo "====== Check if helm-docs is installed ======"
208+ if ! command -v helm-docs >/dev/null 2>&1; then
209+ echo "helm-docs is not installed."
210+
211+ # Check if we're on macOS
212+ if [[ "${' $' } (uname -s)" == "Darwin" ]]; then
213+ # Check if brew is available
214+ if command -v brew >/dev/null 2>&1; then
215+ echo "Installing helm-docs using Homebrew..."
216+ brew install norwoodj/tap/helm-docs
217+ else
218+ echo "WARNING: Homebrew is not installed. Cannot auto-install helm-docs."
219+ echo "Please install Homebrew from https://brew.sh/ or install helm-docs manually."
220+ exit 0
221+ fi
222+ else
223+ echo "WARNING: helm-docs is not installed. Skipping documentation generation."
224+ echo "To install helm-docs on Linux, download from: https://github.com/norwoodj/helm-docs/releases"
225+ exit 0
226+ fi
227+ fi
228+
229+ echo "====== Generate Helm documentation ======"
206230 helm-docs --chart-search-root=.
207231 """ ,
208232 outputFile,
You can’t perform that action at this time.
0 commit comments