mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-11 22:49:54 +00:00
Fix macOS helm-unittest install docs (#68816)
This commit is contained in:
+1
-2
@@ -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`:
|
||||
|
||||
@@ -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"' \
|
||||
|
||||
Reference in New Issue
Block a user