Convert bb-common from library chart to subchart
Summary
Converts the Harbor package from consuming bb-common as a library chart to consuming it as a subchart.
istio,networkPolicies, androutesnow live under abb-commonkey and are validated by the bb-commonvalues.schema.json. Defaults that only restated bb-common's own defaults were dropped.domainmoved toglobal.domainso Helm propagates it to the subchart.- The library include files (
templates/bigbang/istio.yaml,templates/bigbang/routes.yaml,templates/bigbang-network-policies.yaml) are removed; bb-common renders those resources itself. - The OpenShift
NetworkAttachmentDefinitionis now gated onbb-common.istio.enabled. - Docs and the SSO test values updated for the new key layout.
Rendered output is unchanged versus main apart from the # Source: paths (verified by diffing helm template with istio, authorization policies, network policies, and OpenShift enabled).
Paired umbrella branch: 195-harbor-bb-common-subchart (switches the values-secret call to bbCommonSubchart, nests the defaults under bb-common, drops _bb-common-migrations.tpl, updates the unit tests). It will be folded into the bot-created tag-bump MR once this is released.
Relevant logs/screenshots
helm templatediff before/after: no resource changes (only# Source:paths and random secret checksums).- Schema validation active:
--set bb-common.istio.injection=enabledis rejected withadditional properties 'injection' not allowed. - Umbrella unit tests (
unittests/packages/harbor) pass against the paired branch, including the rendered NetworkPolicy suite pointed at this package branch. - Local k3d clean install with the paired umbrella branch (core disabled): HelmRelease
Ready=Trueon chartharbor-1.19.2-bb.4, VirtualService/ServiceEntries/PeerAuthentication/AuthorizationPolicies/NetworkPolicies rendered by the bb-common subchart. All helm tests passed:
NAME: harbor
LAST DEPLOYED: Tue Oct 20 19:52:56 2026
NAMESPACE: harbor
STATUS: deployed
REVISION: 1
DESCRIPTION: Install complete
TEST SUITE: allow-egress-from-harbor-cypress-test-to-anywhere-any-port
Last Started: Tue Oct 20 14:55:22 2026
Last Completed: Tue Oct 20 14:55:22 2026
Phase: Succeeded
TEST SUITE: allow-egress-from-harbor-script-test-to-anywhere-any-port
Last Started: Tue Oct 20 14:55:22 2026
Last Completed: Tue Oct 20 14:55:22 2026
Phase: Succeeded
TEST SUITE: harbor-script-sa
Last Started: Tue Oct 20 14:55:22 2026
Last Completed: Tue Oct 20 14:55:22 2026
Phase: Succeeded
TEST SUITE: harbor-cypress-config
Last Started: Tue Oct 20 14:55:20 2026
Last Completed: Tue Oct 20 14:55:20 2026
Phase: Succeeded
TEST SUITE: harbor-script-config
Last Started: Tue Oct 20 14:55:20 2026
Last Completed: Tue Oct 20 14:55:21 2026
Phase: Succeeded
TEST SUITE: harbor-script-role
Last Started: Tue Oct 20 14:55:21 2026
Last Completed: Tue Oct 20 14:55:21 2026
Phase: Succeeded
TEST SUITE: harbor-script-rolebinding
Last Started: Tue Oct 20 14:55:22 2026
Last Completed: Tue Oct 20 14:55:22 2026
Phase: Succeeded
TEST SUITE: harbor-cypress-test
Last Started: Tue Oct 20 14:55:23 2026
Last Completed: Tue Oct 20 14:55:58 2026
Phase: Succeeded
TEST SUITE: harbor-script-test
Last Started: Tue Oct 20 14:55:58 2026
Last Completed: Tue Oct 20 14:57:32 2026
Phase: SucceededUmbrella Branch
195-harbor-bb-common-subchart
Linked Issue
Upgrade Notices
Big Bang values that override Harbor's istio, networkPolicies, or routes must move under a bb-common key:
packages:
harbor:
values:
bb-common:
istio: {}
networkPolicies: {}
routes: {}domainmoved toglobal.domain.istio.injectionwas removed; it is not part of the bb-common schema. Sidecar-mode resources are gated onbb-common.istio.enabledandbb-common.istio.ambient.enabled.networkPolicies.controlPlaneCidr/networkPolicies.vpcCidrno longer feed a package-levelkubeAPIegress definition; setnetworkPolicies.egress.definitions.kubeAPIin Big Bang values instead (bb-common provides a default).istio.hardened.customServiceEntries/istio.hardened.customAuthorizationPoliciescontinue to be mapped toistio.serviceEntries.custom/istio.authorizationPolicies.custom, at either the top level or underbb-common.