Squashed 'acm-hub-bootstrap/' content from commit 4b79b1a0
git-subtree-dir: acm-hub-bootstrap git-subtree-split: 4b79b1a0be6da2a9efc9ace8871b4762342da70b
This commit is contained in:
15
common/scripts/determine-secretstore-backend.sh
Executable file
15
common/scripts/determine-secretstore-backend.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATTERN_DIR="$1"
|
||||
|
||||
if [ -z "$PATTERN_DIR" ]; then
|
||||
PATTERN_DIR="."
|
||||
fi
|
||||
|
||||
BACKEND=$(yq '.global.secretStore.backend' "$PATTERN_DIR/values-global.yaml" 2>/dev/null)
|
||||
|
||||
if [ -z "$BACKEND" -o "$BACKEND" == "null" ]; then
|
||||
BACKEND="vault"
|
||||
fi
|
||||
|
||||
echo "$BACKEND"
|
||||
Reference in New Issue
Block a user