Skip to content

Instantly share code, notes, and snippets.

@akutz
Last active December 18, 2022 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akutz/7ded1ec5f960c1004ec10a28e42d25ec to your computer and use it in GitHub Desktop.
Save akutz/7ded1ec5f960c1004ec10a28e42d25ec to your computer and use it in GitHub Desktop.
VM Operator K8s Read Ops
cd "$(mktemp -d)" && \
git clone 'https://github.com/vmware-tanzu/vm-operator' . && \
grep -r '\.Get(\(vm\)\{0,1\}[Cc]tx' \
  --include '*.go' \
  --exclude '*_test.go' \
  --exclude-dir test \
  --exclude-dir simplelb . | \
grep -v '^[[:space:]]\{0,\}//' | wc -l
47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment