Convert bb-common to a subchart
Summary
Convert Alloy from bb-common library includes to subchart rendering and native values schema validation. Nest the package's Istio and network-policy settings under bb-common, update the upgrade-job policy lookup and tests, and add global.domain.
Updated against current main, retaining k8s-monitoring 4.5.3, bb-common 1.6.1, Gluon 1.1.10, and current images. Bump the package to 4.5.3-bb.1, regenerate and format README, and update the migration documentation.
The paired umbrella branch is published at 74bbebefb. It supplies nested values, removes the legacy CIDR migration, corrects Prometheus egress, and preserves the current metrics/Cortex Tenant configuration.
Per #158 (closed), do not merge until the final 3.x release has shipped. Keep this MR in draft until CI passes.
Relevant logs/screenshots
- Updated package: all 9 Helm unit tests passed; Helm lint and Markdown lint passed.
- Paired umbrella: all 525 local tests across 88 suites passed. Suites requiring external package fetches were excluded from this local run.
- Combined umbrella/package rendering passed for sidecar, ambient, and Istio-disabled configurations. bb-common rejected an invalid
istio.injectionoverride as expected. - Local k3d deploy of the current
4.5.3-bb.1revision (package:default DISABLE_CORE=trueagainst the paired umbrella branch): HelmReleasealloyreportsReady=True("Helm install succeeded for release alloy/alloy.v1 with chart k8s-monitoring@4.5.3-bb.1"), collector pods run 3/3 with Istio sidecars, and the packagehelm testpassed — all 9 suitesPhase: Succeeded(includingalloy-cypress-testandalloy-script-test), shown below. - The existing untracked metrics fixture is not included in this MR.
Linked Issue
Umbrella Branch
alloy-bb-common-subchart
Upgrade Notices
This is a breaking package values change and requires the paired Big Bang umbrella update.
- Move direct package
istio,networkPolicies, androutesoverrides underbb-common. For Big Bang deployments, movealloy.values.istio,alloy.values.networkPolicies, andalloy.values.routesunderalloy.values.bb-common. - Use
global.domainfor the shared package domain, oralloy.values.global.domainthrough Big Bang. - Remove package
istio.injectionoverrides. Configurebb-common.istio.enabledandbb-common.istio.ambient.enabledinstead. - The paired umbrella update removes Alloy's kubeAPI egress synthesis from
networkPolicies.controlPlaneCidrandnetworkPolicies.vpcCidr. Configure the umbrella'snetworkPolicies.egress.definitions.kubeAPIinstead.
