Migrate Mattermost and Mattermost Operator to bb-common subcharts
Package Merge Request
Package Changes
Switch Mattermost and Mattermost Operator values-secret generation to bbCommonSubchart mode and remove their legacy migration templates and hardened-key adapters.
Mattermost derives sidecar behavior from bb-common.istio.enabled and bb-common.istio.ambient.enabled. Its package chart owns gossip and ServiceMonitor mesh-mode handling; the umbrella no longer sends the retired injection value or duplicates the package's scrape TLS defaults.
Pin both package branches for paired integration tests. Keep Git sources for the pair in the OCI overlay until compatible chart artifacts are published; restore OCI source selection and replace branch pins with release tags before merge.
helm lint chart: passed for Mattermost and the umbrella.- Mattermost: 37 Helm unit tests and five Node browser-configuration tests passed, including gossip, ServiceMonitor modes, and the Cypress runner.
- Umbrella: 534 Helm unit tests passed across 97 suites.
- Five actual umbrella-to-package render scenarios passed with schema validation enabled: strict sidecar mTLS, permissive sidecar mTLS, ambient, mesh disabled, and a package ambient override. Tests asserted the gossip Service, ServiceMonitor scheme, and TLS certificate settings.
- Explicit scrape scheme and TLS overrides are covered by package tests.
- The preceding umbrella pipeline 5762656 passed clean install, upgrade, OCI, and ambient tests. New clean-install findings fixes are under validation below. Commits are signed and contain no co-author trailers.
Current umbrella pipeline: https://repo1.dso.mil/big-bang/bigbang/-/pipelines/5774320
Package MR
- big-bang/product/packages/mattermost!397 (merged)
- big-bang/product/packages/mattermost-operator!164 (merged)
For Issue
Implements the umbrella portions of:
- big-bang/product/packages/mattermost#303 (closed)
- big-bang/product/packages/mattermost-operator#126 (closed)
The paired package MRs close their respective issues.
Upgrade Notices
Big Bang values that override Mattermost's Istio networking, networkPolicies, or routes must move under packages.mattermost.values.bb-common.
Remove the retired istio.injection setting. An enabled mesh with bb-common.istio.ambient.enabled: false uses sidecar mode; ambient.enabled: true selects ambient mode. Gossip and ServiceMonitor behavior derive from these existing settings. This follows package-maintainer guidance and requires no bb-common schema change or replacement gossip toggle.
For strict sidecar mTLS, the ServiceMonitor defaults to HTTPS using /etc/prom-certs/root-cert.pem, /etc/prom-certs/cert-chain.pem, and /etc/prom-certs/key.pem. Ambient mode, a disabled mesh, and permissive mTLS default to HTTP without sidecar certificates. The existing monitoring.serviceMonitor.scheme and tlsConfig overrides remain supported; the scheme default is now empty to select the mode-appropriate default.
Replace legacy istio.chat.enabled, hosts, and gateways with bb-common.routes.inbound.chat settings. Replace legacy istio.hardened settings with supported bb-common.istio configuration. The package-specific hardened-key adapters and _bb-common-migrations.tpl files are removed; configure networkPolicies.egress.definitions.kubeAPI explicitly instead of relying on controlPlaneCidr / vpcCidr translation.
Standalone Mattermost installs must use global.domain for the default chat route and configure bb-common.routes.outbound.sso.hosts for custom identity providers. Route host templates use bb-common scope.
Hold the paired package MRs and umbrella MR in draft until the final Big Bang 3.x release ships. Release compatible package charts and replace temporary branch pins before merging the umbrella change.
Mattermost Operator networking overrides likewise move under packages.mattermostOperator.values.bb-common.