Skip to content

Add TenantInfo to GenericResourceSpec - #674

Merged
ArnobKumarSaha merged 1 commit into
masterfrom
arnob-org-license
Sep 16, 2026
Merged

ArnobKumarSaha merged 1 commit into
masterfrom
arnob-org-license

Conversation

@ArnobKumarSaha

Copy link
Copy Markdown
Member

Part of the org-based licensing model.

Tenant identity is read off the namespace today, so it exists only for client orgs — a managed org owns whole clusters and goes unidentified. This moves the billed identity onto the event itself.

  • TenantInfo{OrgID, Metadata, Source} on GenericResourceSpec; Source is namespace (client org) or cluster (managed org, from the cluster identity).
  • NamespaceInfo.AceOrgID / AceOrgMetadata keep working, marked deprecated for one release.
  • TenantOrgID() / TenantOrgMetadata() hold the prefer-Tenant-fall-back-to-namespace rule in one place, so b3 and other consumers do not each reimplement it.

Discovery differs per tenant shape; the billed identity should not.

Populated by go.bytebuilders.dev/audit and kubedb.dev/provisioner.

The billed org is discovered per tenant shape - a namespace annotation for
client orgs, the cluster identity for managed orgs - but the identity itself
should not depend on that. NamespaceInfo.AceOrgID/AceOrgMetadata are kept one
release; TenantOrgID/TenantOrgMetadata hold the fallback for consumers.

Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha merged commit a7e699f into master Sep 16, 2026
8 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the arnob-org-license branch September 16, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant