Play with operator-sdk to generate a Helm-based operator.
Please refer to: https://github.com/operator-framework/operator-sdk
- OS: Centos
cd vagrant/ && vagrant up
vageant ssh
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Ref: https://github.com/operator-framework/operator-sdk#quick-start
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/operator-framework/operator-sdk
cd ~/go/src/github.com/operator-framework/operator-sdk
make dep
make install
mkdir -p $GOPATH/src/github.com/<GitHub_ID>
cd $GOPATH/src/github.com/<GitHub_ID>
operator-sdk new play-k8s-operator --api-version=samina.fu.com/v1alpha1 --kind=MyTest --type helm # operator-sdk new <project-name> --type=helm --kind=<kind> --api-version=<group/version>
cd play-k8s-operator/