Skip to content

Commit

Permalink
create folder before calling kopium
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Nov 11, 2023
1 parent c447ef8 commit 88b5901
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code-generator/generate-custom-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ for file in ./crd-catalog/**/*.yaml; do
rust_group=$(echo "${group}" | sed -e 's/\./_/g' -e 's/-/_/g')
module="${rust_group}_${version}"

mkdir --parents "./kube-custom-resources-rs/src/${module}"

if [ -f "${args}" ]; then
if ! xargs --arg-file="${args}" --delimiter='\n' kopium --docs --filename="${file}" > "./kube-custom-resources-rs/src/${module}/${rust_crd}.rs"; then
echo "error in ${file}"
Expand Down

0 comments on commit 88b5901

Please sign in to comment.