UNCLASSIFIED - NO CUI

Convert bb-common to subchart

General MR

Summary

Convert Loki from bb-common library-render includes to direct subchart rendering, using the existing bb-common 1.6.0 dependency.

  • Move istio, networkPolicies, and routes beneath bb-common; remove the three library-render wrapper templates and use native dependency schema validation.
  • Update enterprise MinIO and token-generation resources to read scoped values. Preserve the token-generation hook's metadata-IP protection, explicit API destinations, and optional ports without mutating shared definitions.
  • Separate token-generation NetworkPolicy hooks from the enterprise Job so positive policy tests do not require a fake image helper.
  • Use global.domain for the default route hostname and retain disabled-by-default external access.
  • Migrate CI inputs and administrator/maintainer examples to the unified packages: contract; correct obsolete Kyverno exclusions and preserve the developer local-storage allowance.
  • Resolve the CI-fixture overlap with current main through a normal merge, without rewriting published history; regenerate both READMEs.

Deploy together with companion umbrella MR !8402, head b89e21c104. That MR enables bbCommonSubchart, removes Loki's migration template and deprecated hardened-value translation, and preserves scoped ServiceMonitor mTLS and values precedence.

Keep both MRs draft. Do not merge before the final Big Bang 3.x release has gone out. Release-boundary clearance has not been established.

Relevant logs/screenshots

Known validation limitations:

  • Historical-log preservation across an upgrade and data-preserving rollback remain unverified.
  • Full GEL rendering remains blocked by the pre-existing missing loki.kubectlImage helper; focused policy tests do not bypass or fix it.

Linked Issue

First part of Loki issue 328: Convert bb-common to sub-chart

Unblocks: big-bang/bigbang!8402 (merged)

Upgrade Notices

Breaking values change: move Loki overrides for istio, networkPolicies, and routes beneath bb-common. Current umbrella overrides use packages.loki.values, not legacy top-level loki.values:

 packageConfiguration:
   version: v1
 packages:
   loki:
     values:
-      istio:
-        enabled: true
-        sidecar:
-          enabled: true
-        authorizationPolicies:
-          enabled: true
-      networkPolicies:
-        enabled: true
-      routes:
-        inbound:
-          loki:
-            enabled: true
+      bb-common:
+        istio:
+          enabled: true
+          sidecar:
+            enabled: true
+          authorizationPolicies:
+            enabled: true
+        networkPolicies:
+          enabled: true
+        routes:
+          inbound:
+            loki:
+              enabled: true
  • Do not copy legacy istio.hardened into the subchart. Configure Sidecar, ServiceEntries, and authorization policies under bb-common.istio. The umbrella's packages.istiod.values.hardened.enabled still supplies the Sidecar default; authorization-policy generation is controlled separately by authorizationPolicies.enabled or explicit scoped package settings.
  • Direct chart users move root domain to global.domain. Umbrella users keep top-level domain.
  • The removed umbrella _bb-common-migrations.tpl synthesized API egress from networkPolicies.controlPlaneCidr and networkPolicies.vpcCidr. Set shared networkPolicies.egress.definitions.kubeAPI explicitly when needed. Direct chart users configure bb-common.networkPolicies.egress.definitions.kubeAPI. Enterprise token generation with NetworkPolicies enabled requires a nonempty to list and honors optional ports.
  • For 0.0.0.0/0, the token-generation API policy retains the legacy metadata-IP exclusion, preserving existing exceptions without modifying the shared definition. Prefer narrowly scoped API destinations.
  • The original Loki integration !346, umbrella integration !7169, and migration-standardization !7323 did not specify additional Loki 4.0 removals. The removed fallback itself was marked for removal in Big Bang 4.0.
  • No storage schema, retention, object-store credentials, images, dependency versions, or PVC settings change. Rollback must restore the previous umbrella integration, package version, and original flat overrides together.

See the migration guide and Istio guidance for examples and safety constraints.

This change depends on the corresponding umbrella integration in draft umbrella MR !8402, which enables bb-common subchart handling and removes Loki's legacy values migration. The package and umbrella changes must be coordinated.

Umbrella Branch

loki-328-bb-common-subchart

Edited by Daniel Dides

Merge request reports

Loading
Loading