- kubernetes cluster
- kubectl
- helm
-
Install cert-manager:
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.1.0/cert-manager.yaml
-
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
-
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
./hack/kind-with-registry.sh
make test
make docker-build
docker tag controller:latest localhost:5000/controller:latest
docker push localhost:5000/controller:latest
make deploy IMG=localhost:5000/controller:latest