UNCLASSIFIED - NO CUI

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, and routes now live under a bb-common key and are validated by the bb-common values.schema.json. Defaults that only restated bb-common's own defaults were dropped.
  • domain moved to global.domain so 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 NetworkAttachmentDefinition is now gated on bb-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 template diff before/after: no resource changes (only # Source: paths and random secret checksums).
  • Schema validation active: --set bb-common.istio.injection=enabled is rejected with additional 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=True on chart harbor-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:          Succeeded

Umbrella Branch

195-harbor-bb-common-subchart

Linked Issue

#195 (closed)

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: {}
  • domain moved to global.domain.
  • istio.injection was removed; it is not part of the bb-common schema. Sidecar-mode resources are gated on bb-common.istio.enabled and bb-common.istio.ambient.enabled.
  • networkPolicies.controlPlaneCidr / networkPolicies.vpcCidr no longer feed a package-level kubeAPI egress definition; set networkPolicies.egress.definitions.kubeAPI in Big Bang values instead (bb-common provides a default).
  • istio.hardened.customServiceEntries / istio.hardened.customAuthorizationPolicies continue to be mapped to istio.serviceEntries.custom / istio.authorizationPolicies.custom, at either the top level or under bb-common.
Edited by Rob Ferguson

Merge request reports

Loading
Loading