We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7913a31 + 380ea55 commit 5de8043Copy full SHA for 5de8043
Utilities/crd-extractor.sh
@@ -37,8 +37,8 @@ mkdir -p $TMP_CRD_DIR
37
NUM_OF_CRDS=0
38
while read -r crd
39
do
40
- ResourceKind=${crd%%.*}
41
- kubectl get crds ${crd} -o yaml > "$TMP_CRD_DIR/${ResourceKind}.yaml" 2>&1
+ resourceKind=${crd%% *}
+ kubectl get crds "$resourceKind" -o yaml > "$TMP_CRD_DIR/"$resourceKind".yaml" 2>&1
42
let NUM_OF_CRDS++
43
done < <(kubectl get crds 2>&1 | sed -n '/NAME/,$p' | tail -n +2)
44
0 commit comments