Convert bb-common from library chart to subchart
General MR
Summary
1.44.0-bb.2 — consume bb-common as a subchart instead of a library chart. Big Bang values that override Elasticsearch-Kibana's istio, networkPolicies, or routes now live under a top-level bb-common key, and domain moves to global.domain. This gives the package native values.schema.json validation of its istio/networkPolicies/routes config.
- The
istio/networkPolicies/routesconfig moved under a newbb-commonkey inchart/values.yaml; package-owned templates (peerAuthentications, istio ServiceMonitor, NetworkAttachmentDefinition, elasticsearch/kibana pod gating, Kibana config, tests) now read(index .Values "bb-common"). - The three library-include files under
chart/templates/bigbang/(istio.yaml,routes.yaml,network-policies.yaml) are removed; the bb-common subchart renders those resources from thebb-commonvalues. - Redundant keys that only restated bb-common defaults were pruned. Rendered output is unchanged for existing deployments (old library render vs new subchart render is semantically identical).
Pairs with the Big Bang umbrella change that feeds the package its bb-common values and drops the _bb-common-migrations.tpl shim.
Also folds in the sso-secret keystore fix (renders the SSO secret as a kept release resource instead of a pre-upgrade hook), resolving #326 (closed).
Relevant logs/screenshots
Local k3d clean install deploying this branch against the paired umbrella branch (329-elasticsearch-kibana-bb-common-subchart). The ek HelmRelease reconciled Ready=True on chart elasticsearch-kibana-1.44.0-bb.2; Elasticsearch, Kibana, and the metrics exporter pods all reached 2/2 Running.
Helm test (Cypress) passed:
TEST SUITE: logging-ek-cypress-test
Phase: Succeeded
Running: 01-kibana-health.cy.js (1 of 1)
✓ Check Home Page (8197ms)
1 passing (9s)
✔ All specs passed! 00:09 1 1 - - -Additional validation:
helm templaterenders clean with defaults and with istio + networkPolicies enabled; the inbound VirtualService host resolves fromglobal.domain.- Schema validation is active end-to-end: an illegal
bb-common.istio.injectionis rejected by the bb-common schema. - Old (library) vs new (subchart) rendered manifests are semantically identical.
Linked Issues
- Closes #329 (closed)
- Closes #326 (closed)
Umbrella Branch
329-elasticsearch-kibana-bb-common-subchart
Upgrade Notices
- Big Bang values that override Elasticsearch-Kibana's
istio,networkPolicies, orroutesmust move under a newbb-commonkey. domainis relocated to the top-level Helm globalglobal.domain; route hosts now template.Values.global.domain.istio.injectionis removed — it is no longer part of the bb-common schema; sidecar-only resources derive fromistio.enabledandistio.ambient.enabled.networkPolicies.controlPlaneCidrandnetworkPolicies.vpcCidrare removed. Configurebb-common.networkPolicies.egress.definitions.kubeAPIdirectly for Kube API egress.