Skip to content

Commit

Permalink
add script to try converting buggy resources
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Nov 10, 2023
1 parent 038a0db commit c444316
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions code-generator/try-buggy-resources.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
# SPDX-License-Identifier: 0BSD

### Try buggy resources
shopt -s globstar nullglob
for file in ./crd-catalog/**/*.ignore; do
if ! kopium --filename="${file%.*}.yaml" > /dev/null; then
echo " error came from file ${file%.*}.yaml"
fi
done

0 comments on commit c444316

Please sign in to comment.