UNCLASSIFIED - NO CUI

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 NetworkAttachmentDefinition and the script-test sidecar annotation now read bb-common.istio. The sidecar annotation only applies in sidecar mode (istio enabled and not ambient).
  • The umbrella's bb-tests outbound 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 template with default values and with istio, sidecar, authz, netpol, openshift and bbtests enabled: output is identical to main apart 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 new bb-tests-external ServiceEntry.
  • 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-common common block).
  • Clean install on local k3d against the paired umbrella branch: HelmRelease fluentbit Ready (fluentbit@0.58.3-bb.1), fluent-bit DaemonSet pods 2/2 with sidecars. bb-common rendered the NetworkPolicies, the default-peer-auth PeerAuthentication and the bb-tests-external ServiceEntry in the fluentbit namespace. All helm tests (fluentbit-script-*) reached Phase: Succeeded.

(helm test screenshot to be added)

Linked Issue

#246 (closed)

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: true
  • istio.injection is removed (not part of the bb-common schema).
  • Package-level istio.hardened.* overrides are no longer supported and fail schema validation. Use the global packages.istiod.values.hardened.enabled, or set bb-common.istio.sidecar, bb-common.istio.serviceEntries.custom, and bb-common.istio.authorizationPolicies.custom directly.
  • The Fluent Bit package no longer receives networkPolicies.controlPlaneCidr, vpcCidr, or istioNamespaceSelector. They were already unused by bb-common, and kube API egress comes from the global networkPolicies.egress.definitions.kubeAPI.
Edited by Rob Ferguson

Merge request reports

Loading
Loading