debug
Some checks failed
Schemas / Schemas (push) Failing after 59s

This commit is contained in:
Joseph Hanson 2024-05-29 14:26:24 -05:00
parent 6c81e20190
commit d1622e721d
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -89,8 +89,6 @@ jobs:
resourceGroup=$(grep "group:" "$TMP_CRD_DIR/$filename.yaml" | awk 'NR==1{print $2}') resourceGroup=$(grep "group:" "$TMP_CRD_DIR/$filename.yaml" | awk 'NR==1{print $2}')
# Save name and group for later directory organization # Save name and group for later directory organization
CRD_GROUPS["$resourceKind"]="$resourceGroup"
echo CRD_GROUPS: ${CRD_GROUPS[@]}
let ++NUM_OF_CRDS let ++NUM_OF_CRDS
done < <(kubectl get crds 2>&1 | sed -n '/NAME/,$p' | tail -n +2) done < <(kubectl get crds 2>&1 | sed -n '/NAME/,$p' | tail -n +2)
@ -116,6 +114,10 @@ jobs:
crdFileName=$(basename $schema .json) crdFileName=$(basename $schema .json)
crdKind=${crdFileName%%_*} crdKind=${crdFileName%%_*}
crdGroup=${CRD_GROUPS[$crdKind]} crdGroup=${CRD_GROUPS[$crdKind]}
if [ -z $crdGroup ]; then
crdGroup="uncategorized"
echo "CRD kind $crdKind has no group, moving to $crdGroup"
fi
echo making directory $crdGroup echo making directory $crdGroup
mkdir -p $crdGroup mkdir -p $crdGroup
mv $schema ./$crdGroup mv $schema ./$crdGroup