mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
17 lines
305 B
Bash
Executable File
17 lines
305 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
if [ ! -d "schema" ]; then
|
|
mkdir schema
|
|
fi
|
|
|
|
convert_script=$(realpath scripts/openapi2jsonschema.py)
|
|
crd_files=$(find ray-operator/config/crd/bases -name "*.yaml" -exec realpath {} \;)
|
|
|
|
cd schema
|
|
|
|
for crd_file in $crd_files; do
|
|
$convert_script "$crd_file"
|
|
done
|