Skip to content

Instantly share code, notes, and snippets.

@akutz
Created 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/cdfa55be87c720c76de068b181aee02b to your computer and use it in GitHub Desktop.
Save akutz/cdfa55be87c720c76de068b181aee02b to your computer and use it in GitHub Desktop.
VM Operator K8s Write Ops
cd "$(mktemp -d)" && \
git clone 'https://github.com/vmware-tanzu/vm-operator' . && \
s='\.\(\(Create\(Or\(Patch\|' && \
s+='Update\)\)\{0,1\}' && \
s+='\)\|Patch\|Update\)' && \
s+='(\(vm\)\{0,1\}[Cc]tx' && \
grep -rh "${s}" \
  --include '*.go' \
  --exclude '*_test.go' \
  --exclude-dir test \
  --exclude-dir simplelb . | \
grep -v '^[[:space:]]\{0,\}//' | wc -l
35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment