Skip to content

evyaffe/sapcp-operator

 
 

Repository files navigation

sapcp-operator

Coverage Status Build Status License Go Report Card

Prerequisites

  • kubernetes cluster
  • kubectl
  • helm

Setup

  1. Install cert-manager:

    kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.1.0/cert-manager.yaml
    
  2. Create service manager secret:

    kubectl create secret generic sapcp-operator-secret \
      --from-literal=clientid="< clientid >" \
      --from-literal=clientsecret="< secret >" \
      --from-literal=url="< sm_url >" \
      --from-literal=subdomain="< subdomain >" \
      --namespace=sapcp-operator-system
    

    e.g.

    kubectl create secret generic sapcp-operator-secret \
     --from-literal=clientid="myclient" \
     --from-literal=clientsecret="mysecret" \
     --from-literal=url="https://service-manager.cfapps.sap.hana.ondemand.com" \
     --from-literal=subdomain="MyDemoSubaccount0909" \
     --namespace=sapcp-operator-system
    
  3. Deploy the sapcp-operator in the cluster:

    helm install sapcp-operator https://github.com/sm-operator/sapcp-operator/releases/download/${release}/sapcp-operator-${release}.tgz
    

    The list of available releases is available here: sapcp-operator releases

Local setup

Create kind with local docker registry

./hack/kind-with-registry.sh

Run tests

make test

Deploy locally

make docker-build
docker tag controller:latest localhost:5000/controller:latest
docker push localhost:5000/controller:latest
make deploy IMG=localhost:5000/controller:latest

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 97.5%
  • Makefile 1.2%
  • Other 1.3%