/btp-manager

BTP Manager installs SAP BTP Service Operator as Kyma module

Primary LanguageGoApache License 2.0Apache-2.0

BTP Manager

Overview

BTP Manager is an operator for SAP BTP Service Operator based on Kubebuilder framework. It extends Kubernetes API by providing BtpOperator CRD which allows to manage SAP BTP Service Operator resource through CR.

Prerequisites

Installation

Use the following commands to run BTP Manager locally. All make commands refer to Makefile in the operator directory.

make install
make run

Installation with btp-operator module image

Use the following command to download and run btp-manager from OCI Image.

./hack/run_module_image.sh europe-docker.pkg.dev/kyma-project/prod/unsigned/component-descriptors/kyma.project.io/module/btp-operator:0.0.32

NOTE: Before using the script, you must install skopeo and jq.

Installation with template.yaml

To install btp-operator module using a template file (the output of the kyma alpha create module command), use the following commands:

  1. Download the template file, for example:
wget https://github.com/kyma-project/btp-manager/releases/download/0.0.32/template.yaml
  1. Deploy the module:
component_name=$(cat template.yaml | yq '.spec.descriptor.component.name')
base_url=$(cat template.yaml | yq '.spec.descriptor.component.repositoryContexts[0].baseUrl')
version=$(cat template.yaml | yq '.spec.descriptor.component.version')

url="$base_url/component-descriptors/$component_name:$version"

./hack/run_module_image.sh $url

NOTE: Before using the script, you must install skopeo, jq and yq.

Usage

Install SAP BTP Service Operator

To install SAP BTP Service Operator, run the following commands:

kubectl apply -f deployments/prerequisites.yaml
kubectl apply -f examples/btp-manager-secret.yaml
kubectl apply -f examples/btp-operator.yaml
namespace/kyma-system created
priorityclass.scheduling.k8s.io/kyma-system created
secret/sap-btp-manager created
btpoperator.operator.kyma-project.io/btpoperator-sample created

Check BtpOperator CR status by running the following command:

kubectl get btpoperators btpoperator-sample

The expected result is:

NAME                 STATE
btpoperator-sample   Ready

Uninstall SAP BTP Service Operator

To uninstall SAP BTP Service Operator, run the following commands:

kubectl delete -f examples/btp-operator.yaml
kubectl delete -f examples/btp-manager-secret.yaml
kubectl delete -f deployments/prerequisites.yaml
btpoperator.operator.kyma-project.io "btpoperator-sample" deleted
secret "sap-btp-manager" deleted
namespace "kyma-system" deleted
priorityclass.scheduling.k8s.io "kyma-system" deleted