Convert monitoring bb-common to a subchart
Summary
Convert monitoring's bb-common dependency from library usage to a subchart so Istio, network policy, and route values receive native schema validation. Move the configuration under bb-common, remove the library render wrappers, and update package-owned templates and tests. Bump the package to 91.4.1-bb.2 and regenerate the README.
The paired umbrella branch supplies the new values layout, removes the kubeAPI migration shim, preserves legacy custom Istio resource translation, and aligns ambient SSO waypoint references. Route destinations match upstream Service names and ports.
Keep this MR in draft until the final 3.x release has shipped, as required by #404 (closed). Merge the package and umbrella migration together.
Relevant logs/screenshots
- Package pipeline #5741714 passed all validation jobs and default, ambient, SSO, and Authservice clean installs. Upgrade jobs were omitted using
skip-job-upgrade. - Package: Helm lint and all 53 unit tests passed.
- Paired umbrella: Helm lint and all 535 unit tests across 92 suites passed; the 30 monitoring-specific tests also passed on re-evaluation.
- Eight umbrella-to-package renders passed schema validation and verified route Service names, ports, and ambient SSO waypoint references using Flux's release name
monitoring-monitoring: sidecar, disabled Istio, ambient, ambient SSO, custom fullname/ports, custom name, permissive mTLS, and hardened mode. - Both ambient values-overlay Bats checks passed. A negative schema check rejects
bb-common.istio.injection. - Local ambient Authservice validation passed all 11 Helm test hooks, including all 12 Cypress checks plus webhook, Kiali, and Grafana checks.
Linked Issue
Umbrella Branch
monitoring-bb-common-subchart
Upgrade Notices
- Move monitoring package overrides for
istio,networkPolicies, androutesunderbb-common. In umbrella values, usemonitoring.values.bb-common(orpackages.monitoring.values.bb-commonwith package configuration v1). - Replace package
domainandupstream.domainoverrides withglobal.domain. The umbrella continues to supply its global domain. - Remove package
istio.injection. Usebb-common.istio.enabledandbb-common.istio.ambient.enabledfor mesh mode; the umbrella owns namespace injection and sidecar certificate wiring. - Set API-server egress with umbrella
networkPolicies.egress.definitions.kubeAPI. Monitoring no longer synthesizes it fromnetworkPolicies.controlPlaneCidrornetworkPolicies.vpcCidr;controlPlaneCidrstill controls admission-webhook ingress. - Standalone users must enable each route under
bb-common.routes.inboundand align itsserviceandportwith upstream overrides. The paired umbrella enables routes fromistiod.enabledand derives service names and ports. - Custom route templates now run in bb-common's scope. Use
.Values.global.domain; parentupstreamvalues are unavailable. - Put custom Istio resources in
bb-common.istio.serviceEntries.customandbb-common.istio.authorizationPolicies.custom. The umbrella retains translation of legacy hardened custom resource lists at both the flat and nested paths. - Ambient SSO Services and client policies must reference
monitoring-monitoring-waypoint, matching Flux's release namemonitoring-monitoring. The paired umbrella enables Istiod'sENABLE_INGRESS_WAYPOINT_ROUTINGflag and permits Kiali egress to the waypoint.
See the package migration guide for the complete migration notes.