fix: Try to catch incompatible sops and yq versions

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2022-11-29 09:28:49 -05:00
1 parent 17bae3c1a2
commit a02508afae
1 file changed
+10
Vendored
+10
View File
@@ -256,6 +256,16 @@ verify_binaries() {
_has_binary "task" _has_binary "task"
_has_binary "terraform" _has_binary "terraform"
_has_binary "tflint" _has_binary "tflint"
if ! [[ "$(sops --version)" =~ 3\.[0-9]+\.[0-9]+ ]]; then
_log "ERROR" "Incompatible sops version, make sure you are using the latest release of v3"
exit 1
fi
if ! [[ "$(yq --version)" =~ 4\.[0-9]+\.[0-9]+ ]]; then
_log "ERROR" "Incompatible yq version, make sure you are using the latest release of v4"
exit 1
fi
} }
verify_kubevip() { verify_kubevip() {