Convert bb-common from library chart to subchart
General MR
Summary
Twistlock now consumes bb-common as a subchart instead of a library chart. Istio, NetworkPolicy, and route config live under a bb-common key and are validated by bb-common's schema, so typos and unsupported keys fail at render time instead of being silently ignored.
Two behaviors the chart used to handle internally are now driven by values (Big Bang sets both automatically):
console.backendTLS: the chart no longer rewrites the console route port.bb-common.routes.inbound.console.portmust matchconsole.ports.managementHttps, and rendering fails with a clear error if it doesn't.deploymentMode.defenderOnly: the chart no longer suppresses the console route and NetworkPolicies. In Big Bang, defender-only mode disables both.
The paired umbrella branch also fixes the wildcard Tempo egress override, which was missing its to: key and never took effect.
Relevant logs/screenshots
- Default and full-feature (istio + authz + netpol) renders are identical to
mainapart from template source paths. - Schema enforcement confirmed:
--set bb-common.istio.injection=enabledis rejected (at '/istio': additional properties 'injection' not allowed). - Package helm unit tests: 63/63 passed. Umbrella twistlock unit tests: 7/7 passed (plus 42 other umbrella suites that reference twistlock).
- Simulated HelmRelease merge of umbrella common/defaults/overlays renders cleanly; backendTLS routes to 8083, defender-only disables the route and NetworkPolicies.
- Local k3d clean install against the paired umbrella branch: all HelmReleases ready; the subchart rendered the VirtualService, PeerAuthentications, AuthorizationPolicies, ServiceEntries, Sidecar, and NetworkPolicies. All helm tests (script + Cypress) passed.
- The console was OOMKilled at the 8Gi limit in the default and ambient test values (locally and in CI), so Cypress hit a 503 while it restarted. Those limits are raised to 16Gi to match the SSO test values, which got the same bump on 2026-09-23.
Linked Issue
Umbrella Branch
277-twistlock-bb-common-subchart
Upgrade Notices
Big Bang values that override Twistlock's istio, networkPolicies, or routes must move under a bb-common key (e.g. packages.twistlock.values.istio.serviceEntries → packages.twistlock.values.bb-common.istio.serviceEntries).
domainmoved toglobal.domain.istio.injectionremoved (not in the bb-common schema).istio.temporemoved (unused).istio.hardened.customServiceEntries/customAuthorizationPoliciesare no longer translated. Usebb-common.istio.serviceEntries.custom/bb-common.istio.authorizationPolicies.custom.- Legacy
istio.console.enabled/hosts/gatewaysare no longer mapped onto the console route. Usebb-common.routes.inbound.console.*. - The umbrella
networkPolicies.controlPlaneCidr/vpcCidrno longer feed Twistlock'skubeAPIegress definition. Set the globalnetworkPolicies.egress.definitions.kubeAPIinstead (bb-common defaults to private ranges). - The umbrella
networkPolicies.nodeCidrand the package'snetworkPolicies.nodeCidr/controlPlaneCidrare removed. Override thenodeCidrsingress definition via the globalnetworkPolicies.ingress.definitions.nodeCidrsorbb-common.networkPolicies.ingress.definitions.nodeCidrs. - Standalone (non-Big Bang) users of
console.backendTLSmust setbb-common.routes.inbound.console.portto the HTTPS management port (8083). Standalone users ofdeploymentMode.defenderOnlyshould disablebb-common.routes.inbound.consoleandbb-common.networkPolicies.