Skip to content

Instantly share code, notes, and snippets.

@Mossman1215
Last active March 9, 2026 03:17
Show Gist options
  • Select an option

  • Save Mossman1215/deeda6d8049c18c6fd77615c8f4e962a to your computer and use it in GitHub Desktop.

Select an option

Save Mossman1215/deeda6d8049c18c6fd77615c8f4e962a to your computer and use it in GitHub Desktop.
grab kubernetes openapi spec for offline validation
#references https://stackoverflow.com/questions/180052/checkout-subdirectories-in-git
#for use with https://github.com/yannh/kubeconform
git clone -n --depth=1 --filter=tree:0 \
git@github.com:kubernetes/kubernetes
cd kubernetes
git sparse-checkout set --no-cone api/openapi-spec
git checkout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment