clone the life cycle manager
{code} git clone https://github.com/operator-framework/operator-lifecycle-manager {code}
run the following [script|https://gist.github.com/austincunningham/fce5e2d4dcaf7ae9136eef04c78c9814] to add the operator market place to 3.11 once installed it will run automatically, if the script is stopped you only need to run the following to start again. {code} ./operator-lifecycle-manager/scripts/run_console_local.sh {code}
built a [memcache operator example|https://github.com/operator-framework/operator-sdk-samples/tree/master/memcached-operator] and pushed to dockerhub at *docker.io/austincunningham/memcached-operator*
Run the following commands to add memcache-operator to openshift
{code:bash} export IMAGE=austincunningham/memcached-operator:v0.0.1
# Deploy the operator and crd export NAMESPACE="myproject" kubectl create -f deploy/crds/cache_v1alpha1_memcached_crd.yaml -n $NAMESPACE kubectl create -f deploy/service_account.yaml -n $NAMESPACE kubectl create -f deploy/role.yaml -n $NAMESPACE kubectl create -f deploy/role_binding.yaml -n $NAMESPACE
# run the e2e tests on the cluster operator-sdk test cluster $IMAGE --namespace $NAMESPACE --service-account memcached-operator
{code}
|
|