Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use yq instead of grep to extract kind and group from CRDs #288

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ssmall
Copy link

@ssmall ssmall commented Mar 15, 2024

Close #287

@ssmall ssmall marked this pull request as ready for review March 15, 2024 19:00
@@ -50,10 +56,10 @@ NUM_OF_CRDS=0
while read -r crd
do
filename=${crd%% *}
kubectl get crds "$filename" -o yaml > "$TMP_CRD_DIR/$filename.yaml" 2>&1
kubectl get crds "$filename" -o yaml > "$TMP_CRD_DIR/$filename.yaml" 2>&1q

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious. What's the trailing q for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crd-extractor.sh does not work properly on CRDs with more than one line matching kind:
2 participants