Skip to content
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.

3scale-labs/api-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

Check https://github.com/3scale/3scale-operator


"API-Operator" Project main repository

This is not a supported/official redhat product.

Deployment

  • To learn how to deploy openshift locally:

https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md

  • Clone the repo:
git clone https://github.com/3scale/api-operator.git
cd api-operator
  • At the cluster scope, create the Custom Resource Definition (requires cluster-admin role):
oc login -u system:admin
oc create -f api-operator/deploy/crd.yaml
  • Create the RBAC (requires cluster-admin role). Deploy the operator into the namespace where you wish to manage your API:
oc new-project my-hello-api
oc create -f api-operator/deploy/rbac.yaml
oc create -f api-operator/deploy/operator.yaml
  • Within the same namespace as the operator, deploy the example Custom Resource:
oc create -f api-operator/deploy/cr.yaml -n my-hello-api

Build

Please refer to the official docs: https://golang.org/doc/install

  • Installing Go Dep:

Mac:

brew install dep

Other Platforms:

curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
  • Get the API Operator code
go get github.com/3scale/api-operator
  • Run dep ensure
cd ${GOPATH}/src/github.com/3scale/api-operator
dep ensure -v
  • Install operator-framework from vendored sources
go install ./vendor/github.com/operator-framework/operator-sdk/commands/operator-sdk

Make sure ${GOPATH}/bin is added to your PATH

  • Build
operator-sdk build yourregistry/imagename:version
  • Push
docker push yourregistry/imagename:version

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published