Fix macOS helm-unittest install docs (#68816)

This commit is contained in:
Nick Cellino
2026-07-24 15:48:33 +00:00
committed by GitHub
parent 72afa75843
commit d29e03c798
2 changed files with 4 additions and 4 deletions
+1 -2
View File
@@ -92,8 +92,7 @@ and updates are welcome!
```shell
brew install helm
# The pinned helm-unittest version is tracked in build.assets/helm-unittest.version.
helm plugin install https://github.com/helm-unittest/helm-unittest --version v1.0.3 --verify=false
make helmunit/installed
```
1. Install `bats`:
+3 -2
View File
@@ -980,16 +980,17 @@ helmunit/installed:
required="$(HELM_UNITTEST_VERSION:v%=%)"; \
if [ -z "$$actual" ]; then \
printf '%s\n' \
'Helm unittest plugin is required to test Helm charts. Run:'; \
'Helm unittest plugin is required to test Helm charts.'; \
elif [ "$$(printf '%s\n' "$$actual" "$$required" | sort -V | head -n1)" != "$$required" ]; then \
printf '%s\n' \
"Helm unittest plugin $$actual is too old; version $(HELM_UNITTEST_VERSION) or newer is required." \
'Run:'; \
''; \
else \
exit 0; \
fi; \
printf '%s\n' \
'helm-unittest does not provide the plugin signature required for Helm plugin signature verification, so we verify the release archive ourselves when installing:' \
'Run:' \
' plugin_dir="$$(helm env HELM_PLUGINS)/helm-unittest"' \
' rm -rf "$$plugin_dir"' \
' mkdir -p "$$plugin_dir"' \