Skip to content

Commit

Permalink
Update scripts/gen-os-secrets.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Marek Skrobacki <[email protected]>
  • Loading branch information
cardoe and skrobul authored Mar 20, 2024
1 parent f143722 commit 6ef39b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/gen-os-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ if ! type -p kubectl > /dev/null; then
exit 1
fi

KUSTOMIZE_VERSION=$(kubectl version --client -o yaml | yq .kustomizeVersion)
if ! (echo -e "v5.0.0\n$KUSTOMIZE_VERSION" | sort -V -C); then
echo "kustomize needs to be at version 5.0.0 or newer (comes with kubectl 1.27+)"
exit 1
fi

SCRIPTS_DIR="$(dirname "$0")"

echo "This script will attempt to look up the existing values this repo used"
Expand Down

0 comments on commit 6ef39b3

Please sign in to comment.