Skip to content

Instantly share code, notes, and snippets.

@si-rob
si-rob / restitch
Last active September 19, 2018 15:43
restitch graphql api gateway kubernetes pods
# Add this function to your .zshrc file
# This will loop over every pods using the service
# you specify in the args and execute the command
# passed in. You need kubectl installed and you
# must be authed to the kubernetes cluster.
# In this instance we're calling a /restitch endpoint
# in each pod to have GraphQL re-stitch the schema.
# You can pass any command in here.
function restitch(){
NAMESPACE=$1

Keybase proof

I hereby claim:

  • I am si-rob on github.
  • I am sirob (https://keybase.io/sirob) on keybase.
  • I have a public key whose fingerprint is 9E51 9454 D6C9 ACBA 9B6F 6362 B1AF 72EC D6DE 0495

To claim this, I am signing this object: