Controller
less than a minute
To implement the CAP controller, you use the client-go from Kubernetes, which provides the required tools and utilities to interact with the Kubernetes API server. It manages custom resources that are included in CAP Operator.
The controller uses Informers
to watch certain resources and invokes registered event handlers when these resources are modified. To streamline the processing of such notifications, rate limiting queues are implemented, which store the changes and allow the processing of these items in independent reconciliation threads (go routines). Such a design allows sequential processing of the changed items and avoids conflicts.
The following namespaced custom resources have been defined to be reconciled by the CAP controller:
CAPApplication
: defines a high-level application, its domains, and the consumed SAP BTP servicesCAPApplicationVersion
: defines a child resource of theCAPApplication
, which contains container images that will be used to deploy application components (workloads) of a specific versionCAPTenant
: represents a child resource of theCAPApplication
which corresponds to an SAP BTP subaccount subscribed to the applicationCAPTenantOperation
: represents a provisioning, deprovisioning, or upgrade operation on a tenant that is scheduled as a child resource of aCAPTenant
and executed as a sequence of specified steps.
Parent-child relationships between custom resources are established by defining owner references for the children.