UNCLASSIFIED - NO CUI

Migrate legacy Istio hosts to bb-common inbound routes

Package Changes

Update scripts/migrate-values-3-to-4.sh --target 4 to convert legacy Istio hostname overrides into package-specific values.bb-common.routes.inbound.<route>.hosts.

  • Handle the reported packages.<package>.istio.hosts compatibility form for single-route built-ins, root/addon equivalents, historical endpoint-specific chart values, canonical package values, and already-relocated bb-common inputs.
  • Inventory 28 package/endpoint mappings, preserving distinct endpoints for Monitoring, GitLab, MinIO, Anchore Enterprise, and Elasticsearch/Kibana.
  • Preserve explicit route hosts (including empty/null values), unrelated settings, host ordering, wildcards, templates, placeholders, target-3 behavior, and idempotency.
  • Retain ambiguous/custom/unknown/removed-endpoint hosts with actionable stderr review diagnostics. Reject malformed recognized lists or incompatible destination maps before writing output.
  • Add seven independently authored input/expected-output fixture pairs, including the minimal Tempo release-values example, plus a target-3 expected document, mapping provenance, 18 focused Bats tests, and SOPS-wrapper coverage.
  • Document supported shapes, precedence, manual cases, and concrete before/after YAML.

Package MR

Umbrella migration script, fixtures, and documentation change.

For Issue

Closes #3503 (closed)

Upgrade Notices

When preparing Big Bang 4.x values, rerun the updated migration script so legacy custom hostnames become inbound-route overrides. --target 3 retains the 3.x hostname structure. Target-4 output must be used with Big Bang 4.x.

A flat host list on a multi-endpoint package, custom package, or unmapped endpoint is retained and reported for manual migration. These review diagnostics retain exit status 0; resolve the named paths before deployment. Other legacy endpoint settings remain preserved and may need separate migration.

Validation

  • bats --jobs 4 --recursive tests/bats/migrate-values-3-to-4/ — 93 tests passed during iteration.
  • bats --jobs 4 --recursive tests/bats/ — all 229 tests passed on the final changes, including all 93 migration tests; pre-push hook also passed all 229.
  • scripts/generate-package-schemas.sh --check.
  • scripts/generate-values-reference.sh --check via pre-push hook.
  • helm lint ./chart.
  • Representative migrated Tempo, Monitoring, and GitLab renders: inspect emitted package values Secrets, merge common → defaults → overlays, and verify the HelmRelease valuesFrom order and effective hostname overrides.
  • ShellCheck with SC2016 excluded for intentional jq/yq expressions and literal placeholders; Bash syntax; Markdown lint; git diff --check.
  • External documentation link check and upgrade/integration CI evidence for hostname preservation.

Review entry points

  • tests/bats/migrate-values-3-to-4/fixtures/istio-hosts/README.md — mapping evidence and runnable golden-file cases.
  • tests/bats/migrate-values-3-to-4/migrate-istio-hosts.bats — conversion, preservation, wrapper, failure, and render assertions.

Created from origin/master at 361492d71c in the isolated 3503-migrate-istio-hosts worktree. Keep draft pending review and external CI.

Merge request reports

Loading
Loading