Convert bb-common from library chart to subchart
General MR
Summary
Fluent Bit now uses bb-common as a subchart rather than a library chart. Its Istio and network policy settings live under a bb-common key, and bb-common's values.schema.json validates them, so typos or unsupported keys fail at template time and are no longer silently ignored.
- Package values that only restated bb-common defaults were removed; only Fluent Bit–specific network policy config remains.
- The OpenShift
NetworkAttachmentDefinitionand the script-test sidecar annotation now readbb-common.istio. The sidecar annotation only applies in sidecar mode (istio enabled and not ambient). - The umbrella's
bb-testsoutbound route now renders its ServiceEntry. Previously the package never included the bb-common routes renderer, so this route was dropped.
The paired umbrella branch switches values-secret to bbCommonSubchart mode and nests the fluentbit defaults under bb-common. It also drops the mergeLegacyIstioHardenedKeys call and the controlPlaneCidr/vpcCidr/istioNamespaceSelector/istio.hardened defaults that bb-common's schema rejects, matching the merged neuvector and keycloak conversions. Per the issue, this should not merge until the final 3.x release has gone out.
Relevant logs/screenshots
- Standalone
helm templatewith default values and with istio, sidecar, authz, netpol, openshift and bbtests enabled: output is identical tomainapart from# Source:paths. - Rendered through the umbrella branch (common + defaults + overlays) and compared with master +
main. Three scenarios: istio + loki + monitoring + ECK + bbtests, hardened istiod + S3 output, and fluentbit only. Output is identical except for the newbb-tests-externalServiceEntry. - Negative schema check:
--set bb-common.istio.injection=enabled→at '/istio': additional properties 'injection' not allowed. - Package helm unittests: 17/17 passed. Umbrella helm unittests: 538/538 passed (fluentbit suites updated for the
bb-commoncommon block). - Clean install on local k3d against the paired umbrella branch: HelmRelease
fluentbitReady (fluentbit@0.58.3-bb.1), fluent-bit DaemonSet pods 2/2 with sidecars. bb-common rendered the NetworkPolicies, thedefault-peer-authPeerAuthentication and thebb-tests-externalServiceEntry in thefluentbitnamespace. All helm tests (fluentbit-script-*) reachedPhase: Succeeded.
(helm test screenshot to be added)
Linked Issue
Umbrella Branch
246-fluentbit-bb-common-subchart
Upgrade Notices
Big Bang values that override Fluent Bit's istio, networkPolicies, or routes must move under a bb-common key:
packages:
fluentbit:
values:
bb-common:
networkPolicies:
egress:
from:
fluent-bit:
to:
definition:
external-elastic: trueistio.injectionis removed (not part of the bb-common schema).- Package-level
istio.hardened.*overrides are no longer supported and fail schema validation. Use the globalpackages.istiod.values.hardened.enabled, or setbb-common.istio.sidecar,bb-common.istio.serviceEntries.custom, andbb-common.istio.authorizationPolicies.customdirectly. - The Fluent Bit package no longer receives
networkPolicies.controlPlaneCidr,vpcCidr, oristioNamespaceSelector. They were already unused by bb-common, and kube API egress comes from the globalnetworkPolicies.egress.definitions.kubeAPI.