mirror of
https://github.com/katanemo/plano.git
synced 2026-04-28 02:23:56 +02:00
revert validate-config to Python (Tera indent() compat needs fixing)
This commit is contained in:
parent
5a1de47e2c
commit
a0e0f0ffda
2 changed files with 13 additions and 11 deletions
|
|
@ -8,7 +8,13 @@ for file in $(find . -name config.yaml -o -name plano_config_full_reference.yaml
|
|||
rendered_file="$(pwd)/${file}_rendered"
|
||||
touch "$rendered_file"
|
||||
|
||||
planoai validate "$(pwd)/${file}" 2>&1 > /dev/null
|
||||
PLANO_CONFIG_FILE="$(pwd)/${file}" \
|
||||
PLANO_CONFIG_SCHEMA_FILE="${SCRIPT_DIR}/plano_config_schema.yaml" \
|
||||
TEMPLATE_ROOT="${SCRIPT_DIR}" \
|
||||
ENVOY_CONFIG_TEMPLATE_FILE="envoy.template.yaml" \
|
||||
PLANO_CONFIG_FILE_RENDERED="$rendered_file" \
|
||||
ENVOY_CONFIG_FILE_RENDERED="/dev/null" \
|
||||
python -m planoai.config_generator 2>&1 > /dev/null
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Validation failed for $file"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue