Consume bb-common as a subchart
General MR
Summary
Converts grafana from consuming bb-common as a library chart to consuming it as a subchart, so the istio/networkPolicies/routes config is now validated natively by bb-common's values.schema.json.
chart/values.yaml:istio,networkPolicies, androutesmoved under a top-levelbb-common:key;domainmoved toglobal.domain; route hosts now template.Values.global.domain.- Removed the library include templates (
chart/templates/bigbang/{istio,network-policies,routes}.yaml) — bb-common's own subchart render wrappers now produce these resources. - Re-pointed the package-owned
ssoServiceEntry.yamlat(index .Values "bb-common").istio.*. - Bumped
Chart.yamlto13.2.4-bb.1, added a CHANGELOG entry, and regenerated the README.
Requires a paired umbrella change (chart/templates/grafana/values.yaml: bbCommonSubchart true, global.domain, bb-common-nested defaults, removal of _bb-common-migrations.tpl and the legacy istio.hardened shim) — pinned below so CI tests against it.
Relevant logs/screenshots
Full HelmRelease merge (umbrella values secret → package chart) renders an identical resource set before and after the conversion; istio resource specs are byte-identical apart from the expected # Source: path change (templates/bigbang/… → charts/bb-common/templates/…). Schema validation is active — bb-common.istio.injection is rejected. Package and umbrella helm-unittest suites updated and passing.
Linked Issue
Closes #212 (closed)
Umbrella Branch
212-grafana-bb-common-subchart
Upgrade Notices
This conversion relocates and removes bb-common values. Operators overriding these under the grafana package must update them:
istio/networkPolicies/routes→ relocated underbb-common:domain→global.domainistio.injection→ removed (library-chart-era key; not in the bb-common schema)networkPolicies.controlPlaneCidr/networkPolicies.vpcCidr→ removed (bb-common's globalnetworkPolicies.egress.definitions.kubeAPIreplaces them)- legacy
istio.grafana.hostsoverride → removed (setbb-common.routes.inbound.grafana.hostsinstead) - legacy
istio.hardened.customServiceEntries/istio.hardened.customAuthorizationPoliciesoverrides are no longer auto-migrated (the compatibility shim was dropped) — setbb-common.istio.serviceEntries.custom/bb-common.istio.authorizationPolicies.customdirectly instead
Must not be merged until the final 3.x release has shipped.