$ mkdir -p $HOME/projects/example-inc/
$ cd $HOME/projects/example-inc/
$ operator-sdk new app-operator --repo github.com/example-inc/app-operator
$ cd app-operator
$ operator-sdk add api --api-version=app.example.com/v1alpha1 --kind=AppService
$ operator-sdk add controller --api-version=app.example.com/v1alpha1 --kind=AppService
$ operator-sdk build quay.io//app-operator
$ docker login quay.io
$ docker push quay.io//app-operator
Update the operator manifest to use the built image name (if you are performing these steps on OSX, see note below)
$ sed -i 's|REPLACE_IMAGE|quay.io//app-operator|g' deploy/operator.yaml
$ sed -i "" 's|REPLACE_IMAGE|quay.io//app-operator|g' deploy/operator.yaml
$ kubectl create -f deploy/service_account.yaml
$ kubectl create -f deploy/role.yaml $ kubectl create -f deploy/role_binding.yaml
$ kubectl create -f deploy/crds/app.example.com_appservices_crd.yaml
$ kubectl create -f deploy/operator.yaml
$ kubectl create -f deploy/crds/app.example.com_v1alpha1_appservice_cr.yaml