UNCLASSIFIED - NO CUI

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

#404 (closed)

Umbrella Branch

monitoring-bb-common-subchart

Upgrade Notices

  • Move monitoring package overrides for istio, networkPolicies, and routes under bb-common. In umbrella values, use monitoring.values.bb-common (or packages.monitoring.values.bb-common with package configuration v1).
  • Replace package domain and upstream.domain overrides with global.domain. The umbrella continues to supply its global domain.
  • Remove package istio.injection. Use bb-common.istio.enabled and bb-common.istio.ambient.enabled for 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 from networkPolicies.controlPlaneCidr or networkPolicies.vpcCidr; controlPlaneCidr still controls admission-webhook ingress.
  • Standalone users must enable each route under bb-common.routes.inbound and align its service and port with upstream overrides. The paired umbrella enables routes from istiod.enabled and derives service names and ports.
  • Custom route templates now run in bb-common's scope. Use .Values.global.domain; parent upstream values are unavailable.
  • Put custom Istio resources in bb-common.istio.serviceEntries.custom and bb-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 name monitoring-monitoring. The paired umbrella enables Istiod's ENABLE_INGRESS_WAYPOINT_ROUTING flag and permits Kiali egress to the waypoint.

See the package migration guide for the complete migration notes.

Edited by Rob Ferguson

Merge request reports

Loading
Loading