Operator SDK

Operator-SDK Installation

Install Go


brew install go
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/bin:$GOPATH/bin


wget https://dl.google.com/go/go1.10.2.linux-amd64.tar.gz
sudo tar -xvf go1.10.2.linux-amd64.tar.gz -C /usr/local/
mkdir -p $HOME/go/src
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin


choco install golang

Create folder at C:\go-work.
Right click on “Start” and click on “Control Panel”. Select “System and Security”, then click on “System”.
From the menu on the left, select the “Advanced systems settings”.
Click the “Environment Variables” button at the bottom.
Click “New” from the “User variables” section.
Type GOPATH into the “Variable name” field.
Type C:\go-work into the “Variable value” field.
Click OK.

Install Dep


brew install dep


curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh


choco install dep

Install the Operator SDK

Clone the Operator SDK (v0.6.0)

mkdir $GOPATH/src/github.com/operator-framework
cd $GOPATH/src/github.com/operator-framework
git clone https://github.com/operator-framework/operator-sdk
cd operator-sdk
git checkout tags/v0.6.0

Install the Operator SDK’s dependencies.

dep ensure -v

Install the Operator SDK.

go install -v github.com/operator-framework/operator-sdk/commands/operator-sdk

Verify the Operator SDK was successfully installed. Verify you are on operator-sdk version v0.6.0

operator-sdk --version