refactor: retire external vector deployment
This commit is contained in:
@@ -60,6 +60,10 @@ targets=()
|
||||
sources=()
|
||||
while IFS=$'\t' read -r name target; do
|
||||
[[ "$name" =~ ^THT_WS_[A-Za-z0-9_]+_FILE$ ]] || continue
|
||||
if [[ "$name" == *"_VECTOR_"* || "$name" == *"_EMBEDDING_"* ]]; then
|
||||
echo "retired semantic secret binding is not supported: ${name%_FILE}_SOURCE" >&2
|
||||
exit 2
|
||||
fi
|
||||
[[ "$target" =~ ^/run/secrets/[A-Za-z0-9][A-Za-z0-9_.-]*$ && "$target" != *..* ]] || {
|
||||
echo "invalid connector secret target for $name: $target" >&2
|
||||
exit 2
|
||||
|
||||
Reference in New Issue
Block a user