UNCLASSIFIED - NO CUI

add big bang HR and package HR specs as inputs for the 4.0 migration script

General MR

Summary

Adds HelmRelease input support to the Big Bang 4.0 package-values migration script.

--bigbang-helmrelease migrates a parent release’s inline spec.values while preserving its manifest structure. This supports migrating individual Kustomize patches without changing their directory layout or overlay order. The mode supports separate output and in-place migration with a backup.

The repeatable --helmrelease-patch FILE option converts child package HelmRelease patches into Big Bang package values. It maps release names to canonical package keys, moves supported Flux settings under flux, and applies converted patches after ordinary values inputs. Later patches win.

Unsupported fields and ambiguous patch operations fail before output is written. Existing raw-values and Secret migration workflows remain supported.

Validation:

  • All 200 Bats tests passed, including Kustomize composition and Helm rendering.
  • Generated package metadata and shell syntax checks passed.
  • Read-only conversion checks passed for 136 Partybus parent HelmRelease patches, preserving package payloads and fields outside spec.values.

Relevant logs/screenshots

N/A

Linked Issue

Closes #3481 (closed)

Upgrade Notices

The migration script now supports two additional input modes:

  • --bigbang-helmrelease: migrate package paths inside a parent Big Bang HelmRelease’s spec.values while preserving the surrounding manifest.
  • --helmrelease-patch FILE: convert child package HelmRelease patches into Big Bang package values.

For layered parent patches, use --omit-package-configuration on secondary files when a primary source supplies packageConfiguration.version: v1. Referenced ConfigMap and Secret values must be migrated separately.

When replacing child HelmRelease patches with converted values, remove the original patches from the deployment. JSON patches, embedded patch paths, and unsupported patch operations require manual review.

Merge request reports

Loading
Loading