Skip to content

Scope the billing service account helper to the chart - #1323

Merged
Imtiaz246 merged 1 commit into
masterfrom
fix-billing-sa-helper
Aug 20, 2026
Merged

Scope the billing service account helper to the chart#1323
Imtiaz246 merged 1 commit into
masterfrom
fix-billing-sa-helper

Conversation

@Imtiaz246

Copy link
Copy Markdown
Member

Installing the acaas umbrella failed with

ServiceAccount "default" in namespace "ace" exists and cannot be
imported into the current release: invalid ownership metadata

Helm keeps template definitions in one global namespace, and every acaas subchart defines appscode.serviceAccountName. billing-ui, marketplace-api, platform-links and website all define it as

{{- default "default" .Values.serviceAccount.name }}

so once any of them is enabled its body wins over billing's and the name collapses to "default", which makes the chart try to adopt the namespace's built-in service account. The collision was invisible while billing's own body was identical; it only surfaced once the name started feeding a ServiceAccount object and the role bindings.

Rename the define to billing.serviceAccountName, matching the chart-scoped billing.fullname and billing.labels, and update the six call sites. With the acaas values that reproduced the failure, billing now renders acaas-billing for the service account, all three pod specs and all three role bindings.

Installing the acaas umbrella failed with

  ServiceAccount "default" in namespace "ace" exists and cannot be
  imported into the current release: invalid ownership metadata

Helm keeps template definitions in one global namespace, and every acaas
subchart defines appscode.serviceAccountName. billing-ui, marketplace-api,
platform-links and website all define it as

  {{- default "default" .Values.serviceAccount.name }}

so once any of them is enabled its body wins over billing's and the name
collapses to "default", which makes the chart try to adopt the namespace's
built-in service account. The collision was invisible while billing's own
body was identical; it only surfaced once the name started feeding a
ServiceAccount object and the role bindings.

Rename the define to billing.serviceAccountName, matching the chart-scoped
billing.fullname and billing.labels, and update the six call sites. With
the acaas values that reproduced the failure, billing now renders
acaas-billing for the service account, all three pod specs and all three
role bindings.

Signed-off-by: Imtiaz Uddin <imtiaz@appscode.com>
@Imtiaz246
Imtiaz246 merged commit 9c852d6 into master Aug 20, 2026
4 checks passed
@Imtiaz246
Imtiaz246 deleted the fix-billing-sa-helper branch August 20, 2026 12:27
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