- Add the following line to your ~/.bash-profile
export PATH=$PATH:"$(mdfind kMDItemCFBundleIdentifier == 'com.bohemiancoding.sketch3' | head -n 1)/Contents/Resources/sketchtool/bin/"
- Add the following lines to your ~/.gitconfig
[diff "sketchtool"] textconv = "sketchtool dump" cachetextconv = true binary = true
Experience Report: Building a kubectl plugin for Service Catalog
Why a kubectl plugin?
The goal of the service catalog cli (svcat) is to reduce the learning curve for developers and follow precedent set by kubectl when reasonable so that "finger memory" built-up from using kubectl translates to being able to use svcat without reading the help text much.
It isn't intended to be a replacement for kubectl, and instead users will jump back and forth between kubectl and svcat. As a plugin, it reinforces the mental model that svcat conforms to the way kubectl works, and makes the switch between the two less noticeable.
Dual Mode Service Catalog CLI
We can use the same binary as a standalone Service Catalog CLI, and as a kubectl plugin, with only minor modifications.
This is what you see today with svcat.
curl -sLO https://servicecatalogcli.blob.core.windows.net/cli/latest/$(uname -s)/$(uname -m)/svcat