Skip to content

[Feat] Operator: Subscription handling revamped - #500

Draft
Pavan-SAP wants to merge 2 commits into
mainfrom
subscriptionResources
Draft

Pavan-SAP wants to merge 2 commits into
mainfrom
subscriptionResources

Conversation

@Pavan-SAP

@Pavan-SAP Pavan-SAP commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

Introduce Subscription and SubscriptionProvider:
Introduce two new custom resources to model multi-tenant subscription lifecycle as first-class operator resources.

  • Subscription: represents a tenant subscription request. The controller reconciles it end-to-end — resolving the subscription URL (with domain validation against Domain/ClusterDomain resources), creating an owned CAPTenant identified via subscriptionGuid, and tracking readiness.

  • SubscriptionProvider: represents the provider-side registration. The controller derives subscription service and related dependencies from the owning CAPApplication's BTP service bindings.

The subscription server now creates Subscription CROs instead of driving tenant operations directly, delegating tenant lifecycle to the operator.

@Pavan-SAP Pavan-SAP changed the title [Feat] Operator: Subscription handling revamped [DO NOT MERGE] [Feat] Operator: Subscription handling revamped Aug 7, 2026
@Pavan-SAP
Pavan-SAP force-pushed the subscriptionResources branch from 4fa5b8f to a1051bf Compare August 20, 2026 22:30
@Pavan-SAP
Pavan-SAP force-pushed the subscriptionResources branch from a1051bf to 844d933 Compare September 1, 2026 13:35
@Pavan-SAP Pavan-SAP added the build-pr-images Set this label on PRs to build docker images for changes label Sep 1, 2026
@Pavan-SAP
Pavan-SAP force-pushed the subscriptionResources branch from 844d933 to 0d55550 Compare September 1, 2026 13:38
@Pavan-SAP
Pavan-SAP force-pushed the subscriptionResources branch from 0d55550 to d9ff49e Compare September 1, 2026 13:44
@Pavan-SAP Pavan-SAP added build-pr-images Set this label on PRs to build docker images for changes and removed build-pr-images Set this label on PRs to build docker images for changes labels Sep 1, 2026
@anirudhprasad-sap anirudhprasad-sap added build-pr-images Set this label on PRs to build docker images for changes and removed build-pr-images Set this label on PRs to build docker images for changes labels Sep 1, 2026
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 3, 2026 12:54 — with GitHub Actions Active
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 3, 2026 12:54 — with GitHub Actions Active
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 3, 2026 12:54 — with GitHub Actions Active
@Pavan-SAP
Pavan-SAP force-pushed the subscriptionResources branch from 519757e to a209c77 Compare September 4, 2026 06:11
@Pavan-SAP Pavan-SAP added build-pr-images Set this label on PRs to build docker images for changes and removed build-pr-images Set this label on PRs to build docker images for changes labels Sep 4, 2026
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 4, 2026 06:11 — with GitHub Actions Active
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 4, 2026 06:11 — with GitHub Actions Active
@Pavan-SAP
Pavan-SAP force-pushed the subscriptionResources branch from a209c77 to 8205092 Compare September 4, 2026 06:51
@Pavan-SAP Pavan-SAP added build-pr-images Set this label on PRs to build docker images for changes and removed build-pr-images Set this label on PRs to build docker images for changes labels Sep 4, 2026
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 4, 2026 06:51 — with GitHub Actions Active
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 4, 2026 06:51 — with GitHub Actions Active
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 4, 2026 06:51 — with GitHub Actions Active
@Pavan-SAP
Pavan-SAP force-pushed the subscriptionResources branch from 8205092 to 93e9cb8 Compare September 4, 2026 07:00
@Pavan-SAP Pavan-SAP added build-pr-images Set this label on PRs to build docker images for changes and removed build-pr-images Set this label on PRs to build docker images for changes labels Sep 4, 2026
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 4, 2026 07:01 — with GitHub Actions Active
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 4, 2026 07:01 — with GitHub Actions Active
@Pavan-SAP
Pavan-SAP deployed to cap-op-internal September 4, 2026 07:01 — with GitHub Actions Active
@Pavan-SAP Pavan-SAP changed the title [DO NOT MERGE] [Feat] Operator: Subscription handling revamped [Feat] Operator: Subscription handling revamped Sep 4, 2026
@Pavan-SAP
Pavan-SAP force-pushed the subscriptionResources branch from 93e9cb8 to e04f19f Compare September 4, 2026 07:36
@Pavan-SAP Pavan-SAP removed the build-pr-images Set this label on PRs to build docker images for changes label Sep 4, 2026
Introduce new version that removed some deprecated spec fields:
- `domains` & `globalAccountId` are now removed.
Webhook:
- Remove mutating web-hook / code that converted domains --> domainRefs!
Introduce Subscription and SubscriptionProvider:
Introduce two new custom resources to model multi-tenant subscription
lifecycle as first-class operator resources.

- Subscription: represents a tenant subscription request. The controller
  reconciles it end-to-end — resolving the subscription URL (with domain
  validation against Domain/ClusterDomain resources), creating an owned
  CAPTenant identified via subscriptionGuid, and tracking readiness.

- SubscriptionProvider: represents the provider-side registration. The
  controller derives subscription service and related dependencies from
  the owning CAPApplication's BTP service bindings.

The subscription server now creates Subscription CROs instead of driving
tenant operations directly, delegating tenant lifecycle to the operator.
@sonarqubecloud

Copy link
Copy Markdown

This branch was successfully deployed

2 active deployments
cap-op-internal — 94e8e7db Deployed Sep 30, 2026 by Pavan-SAP via build-on-label (server) #218
build — 94e8e7db Deployed Sep 30, 2026 by Pavan-SAP via Analyze with Sonar Cloud #1685
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-pr-images Set this label on PRs to build docker images for changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants