Convert bb-common from library chart to subchart
Summary
First part of #168 (closed).
- Consume bb-common 1.6.1 application templates as a subchart; synchronized with main chart 3.2.1-bb.0 / Tempo 3.1.1.
- Nest networking, Istio, and routes under bb-common; remove the three library render includes.
- Share the domain through global.domain and render upgrade Job API egress through bb-common using the shared kubeAPI definition and pre-upgrade hook annotations. The Job version guard is unchanged.
- Bump Tempo chart to 3.2.1-bb.1, rebuild dependencies, regenerate README, and update development/migration examples.
Umbrella Branch
tempo-168-bb-common-subchart
References
- Renovate !146
- Fortify !248
- Umbrella Renovate integration !8425
- Coordinated umbrella branch:
tempo-168-bb-common-subchart.
Validation
helm lint chartpassed.- Rebuilt locked dependencies with
helm dependency update ./chart. - Rendered effective umbrella common/defaults/overlays into this package for hardened sidecar and ambient modes, including Helm tests. Verified ingestion policies, mTLS, sidecar behavior, and test ServiceEntry.
- Rendered an enabled inbound route with networking.istio.io/v1 capability and custom domain; destination is tempo-tempo:3200.
- Routine offline upgrade render does not emit the legacy upgrade NetworkPolicy. No cluster upgrade or qualifying legacy hook execution performed.
- Verified deployed package commit d6e10a0d and umbrella commit 34e072572 on the user-confirmed development cluster: all 17 HelmReleases Ready, Tempo 2/2 with zero restarts, readiness HTTP 200, and subchart-generated networking/Istio resources present. Over 15 seconds, 12 spans were ingested and processed, 202 remote-write samples were sent, with no new failures and no pending samples. This verifies the default STRICT sidecar configuration, not the full Cypress suite.
- Previous clean-install and upgrade jobs used umbrella master because the required branch-selector heading was missing; both failed the Grafana datasource assertion. The selector above now targets the companion branch. Paired CI rerun pending.
Upgrade Notices
Tempo 3 disables legacy flat runtime overrides by default. The companion umbrella now emits scoped ingestion and metrics_generator overrides and no longer selects the removed local-blocks metrics-generator processor. Migrate any custom flat per-tenant overrides to the Tempo 3 scoped format.
Deploy together with the matching umbrella integration. Move package values istio, networkPolicies, and routes under bb-common. Direct chart consumers must move domain to global.domain. Remove the old package networkPolicies.controlPlaneCidr setting; API egress now uses the shared kubeAPI definition. Its defaults cover private ranges 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16, with target ports discovered from the Kubernetes Service. Customize the shared networkPolicies.egress.definitions.kubeAPI or direct-chart bb-common.networkPolicies.egress.definitions.kubeAPI when needed. If customizing upgradeJob.hook, align the annotations on bb-common.networkPolicies.egress.from.tempo-upgrade-job as well.
Replace istio.hardened.enabled with explicit bb-common.istio.sidecar.enabled (false for ambient) and bb-common.istio.authorizationPolicies.enabled/generateFromNetpol. Move legacy customServiceEntries/customAuthorizationPolicies to bb-common.istio.serviceEntries.custom/authorizationPolicies.custom. Remove legacy istio.injection and obsolete networkPolicies.ingressLabels; use umbrella injection and bb-common routes.
There is no Tempo _bb-common-migrations.tpl in the umbrella. Reviewed original integration !191 (merged): no additional deferred 4.0 removals were listed.
Ready for code-owner review while dependency integration and upgrade validation complete. Per #168 (closed), do not merge before the final 3.x release.
CI follow-up
Merged current target branches without rewriting history. Tempo now uses upstream chart 3.2.0, Tempo 3.1.0, Gluon 1.1.10, and bb-common 1.6.1, with migration chart version 3.2.1-bb.1. Retained main trace-ingestion, TraceQL, and metrics-generator tests. Lint, dependency alignment, composed umbrella/package rendering, 13 Tempo unit tests, and all 211 umbrella Bats tests passed locally. Fresh CI is running. Earlier live deployment evidence applies to the pre-sync Tempo 2.10.5 baseline; the newer application version requires fresh validation.
CI uncovered a metrics-generator-only startup issue after synchronizing with Tempo 3: the old umbrella emitted legacy flat tenant overrides. Commit 000a43eb6 migrates these to the supported format and adds assertions. The draft OCI test explicitly uses Git for Tempo until its artifact is published; this is not evidence of Tempo OCI installation, and the exception must be reverted before merge. Superseded runs were canceled and package install/upgrade jobs restarted against the corrected umbrella branch.
Latest review follow-up
- Tempo commit f5f0945c replaces the temporary branch in docs/dev-overrides.yaml with a documented
<test-branch>placeholder. - Rebased head 6199f9df passed all package static checks and clean-install integration, including Grafana datasource health and TraceQL retrieval.
- Upgrade job 64632515 failed while installing target main chart 3.2.0-bb.0 with umbrella master, before the migration upgrade began. The baseline still emits legacy flat metrics-generator overrides.
- Baseline prerequisite: umbrella !8420. Its runtime compatibility fix must reach master before rerunning the genuine upgrade test. The migration branch already contains the scoped override fix. No upgrade checks were disabled.
- Package is open for code-owner review. Required upgrade validation remains pending the baseline fix; release pins/OCI exceptions are finalized in the later umbrella MR.
Epic 654 comparison and corrected baseline dependency
Compared merged Renovate !146 (closed), Grafana !256, Kiali !413, and MinIO !307. Their upgrade jobs install package main using umbrella master, test the baseline, and then upgrade using the companion Umbrella Branch. Tempo uses the same workflow.
The difference is the preceding Tempo runtime upgrade: package !218 (merged) (Tempo 3.1.0, chart 3.2.0-bb.0) has merged, but its umbrella release integration !8445 remains open. !8445 already incorporates the scoped runtime-override fix from !8420 and has a successful pipeline. It currently requires two reviewer approvals. This supersedes the earlier recommendation to pursue draft !8420 separately.
Complete the preceding release integration !8445, then retry this package upgrade job. Our migration umbrella !8443 should still merge after this package MR, following package-first release order. No upgrade-test skip is authorized or applied.
Review readiness
Marked ready for review at the maintainer request; assigned eligible CODEOWNERS reviewers and status::review. The package upgrade test remains required. The outstanding baseline dependency is the preceding Tempo release integration, umbrella !8445, rather than migration umbrella !8443. Package !228 (merged) is to merge before its migration umbrella MR.
Reviewer feedback addressed (2026-10-23)
- Package commit 196a1696 and umbrella commit bc46546a3 replace the custom upgrade NetworkPolicy with bb-common shared kubeAPI egress and Helm hook metadata, following both reviewer examples. The Job retains its original name label and legacy-version guard; see the selector follow-up below.
- Removed upgradeJob.controlPlaneCidr from package defaults and umbrella injection. Regenerated README and documented shared-definition customization and hook annotation alignment.
- Nine package tests pass, including mocked legacy upgrade guard and Kubernetes Service port discovery. Umbrella lint and all 14 Tempo tests pass; full local umbrella suite reports 615 passes and the same eight previously reproduced schema-test failures. Composed umbrella/package rendering verifies shared kubeAPI overrides reach the generated policy.
- Preceding runtime integration umbrella !8445 merged on 2026-10-23, superseding the historical baseline-dependency notes above. New package and umbrella pipelines were triggered by these pushes; the required upgrade test remains enabled.
Original selector retained
Package ed79b5fb removes the extra component label and uses bb-common default matching on the original app.kubernetes.io/name label. Umbrella mapping from 5bf5c0bcd was removed by e05579464: upgrade Job names and selectors remain package-owned. Custom names require a matching selector in package overrides, as documented in docs/overview.md (523cdbb9). Ten package and fifteen Tempo umbrella unit tests pass; the full local umbrella suite has 621 passes and the eight known schema-test errors.
Current-main synchronization (2026-10-26)
Merged package main b100d78a in f0fe72fe to resolve the release-metadata conflicts. The migration release is now 3.2.1-bb.1, with upstream chart 3.2.1 and Tempo/Tempo Query 3.1.1. Locked dependencies and vendored archives are aligned; all 10 package unit tests, chart lint, and markdown lint pass. Fresh CI must validate this head. Companion umbrella pins match the new release. No additional prerequisite umbrella merge is required: !8445 has already merged.