Skip to content

Populate tenant on the billing event - #72

Merged
ArnobKumarSaha merged 1 commit into
masterfrom
arnob-org-license
Sep 17, 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. Depends on kmodules/resource-metadata#674 and kmodules/client-go#649.

  • Cluster-sourced tenant is set from ClusterMetadata.License.OrgID, before the namespace block — a managed org owns whole clusters and has no namespace to read.
  • The client-org branch overrides it with Source: namespace, reusing the org id and metadata already computed there. A client org is more specific than the cluster it sits on.
  • Namespace.AceOrgID / AceOrgMetadata stay populated for one release.

Inert until ui-server writes LicenseInfo into ace-info: License is nil everywhere today, so only the namespace path fires, exactly as before.

Vendor: the vendored kmodules.xyz sources are hand-patched to the unreleased types so this builds; the real go.mod bump lands once client-go and resource-metadata are tagged. Do not merge before that.

Set from the cluster identity for managed orgs, overridden by the namespace
annotations for client orgs, which are more specific than the cluster they sit
on. Namespace.AceOrgID/AceOrgMetadata stay populated one release.

Vendored kmodules.xyz sources are hand-patched to the unreleased types; the
real bump lands when client-go and resource-metadata are tagged.

Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
Signed-off-by: Arnob kumar saha <arnob@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha merged commit 8be681d into master Sep 17, 2026
4 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the arnob-org-license branch September 17, 2026 11:36
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