Skip to content

fix(chart): normalize MQTT stream sources#29

Merged
FrankSpitulski merged 1 commit into
mainfrom
fix/chart/6230686-cpc-mqtt-streams
May 28, 2026
Merged

fix(chart): normalize MQTT stream sources#29
FrankSpitulski merged 1 commit into
mainfrom
fix/chart/6230686-cpc-mqtt-streams

Conversation

@FrankSpitulski
Copy link
Copy Markdown
Collaborator

@FrankSpitulski FrankSpitulski commented May 28, 2026

Summary

  • Keeps NACK control-loop mode enabled.
  • Renders empty CPC source-transform destinations explicitly so Helm SSA matches the Stream spec NACK writes back.
  • Keeps the local --force-conflicts fallback for actual source/topology changes where NACK owns existing Stream fields.

NVBug

6230686

Root cause

NACK normalizes omitted subject transform destinations to dest: "". Helm previously rendered those as absent. After NACK took ownership of spec.sources, a no-op Helm upgrade attempted to change the field back to absent and hit an SSA conflict.

Upstream check

  • Current chart dependency: nack chart 0.33.2, app 0.22.2.
  • Latest checked: chart 0.34.0, app 0.23.0; no relevant managed-field/source normalization fix found.
  • Add stream mirror field on updates nats-io/nack#99 fixed source updates long before this version; open control-loop issues found are unrelated to this Helm SSA conflict.

Validation

  • git diff --check origin/main...HEAD
  • helm lint deploy/nats-event-bus
  • helm template nats-event-bus deploy/nats-event-bus --namespace event-bus -f local/nats/k8s/local-dev-values.yaml -f local/nats/k8s/cpc/values.yaml -f local/nats/k8s/cpc/cpc-1.yaml --show-only templates/mqtt-streams.yaml
  • make check
  • Clean e2e setup: make clean-e2e, make -C local setup-infra, make -C local deploy-nats
  • make test-e2e: functional passed; performance passed with 12 passed, 0 failed
  • Post-e2e manual bug check: no-force helm upgrade passed on kind-cpc-1 and kind-cpc-2, both revision 2
  • Post-e2e stream readiness: all five Stream CRs Ready on both CPC clusters

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 28, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@FrankSpitulski FrankSpitulski force-pushed the fix/chart/6230686-cpc-mqtt-streams branch 2 times, most recently from d945e99 to c36ef60 Compare May 28, 2026 09:35
@FrankSpitulski FrankSpitulski changed the title fix(chart): keep NATS streams under Helm ownership fix(chart): preserve NACK control loop May 28, 2026
@FrankSpitulski FrankSpitulski force-pushed the fix/chart/6230686-cpc-mqtt-streams branch from c36ef60 to 0ce5ede Compare May 28, 2026 09:50
@FrankSpitulski FrankSpitulski changed the title fix(chart): preserve NACK control loop fix(chart): normalize MQTT stream sources May 28, 2026
@FrankSpitulski FrankSpitulski force-pushed the fix/chart/6230686-cpc-mqtt-streams branch from 0ce5ede to 116e890 Compare May 28, 2026 09:58
Render empty source transform destinations explicitly.

This matches the Stream specs that NACK writes back in control-loop mode.

Keep the NACK control loop enabled.

Signed-off-by: Frank Spitulski <fspitulski@nvidia.com>
@FrankSpitulski FrankSpitulski force-pushed the fix/chart/6230686-cpc-mqtt-streams branch from 116e890 to b046c54 Compare May 28, 2026 10:01
@FrankSpitulski FrankSpitulski marked this pull request as ready for review May 28, 2026 10:04
@FrankSpitulski FrankSpitulski requested a review from a team May 28, 2026 10:04
@github-actions
Copy link
Copy Markdown

🔐 TruffleHog Secret Scan

No secrets or credentials found!

Your code has been scanned for 700+ types of secrets and credentials. All clear! 🎉

🔗 View scan details

🕐 Last updated: 2026-05-28 10:04:57 UTC | Commit: b046c54

@github-actions
Copy link
Copy Markdown

🛡️ CodeQL Analysis

✅ No security issues found!

💡 Note: Enable GitHub Advanced Security to see full details in the Security tab.

🕐 Last updated: 2026-05-28 10:06:02 UTC | Commit: b046c54

@FrankSpitulski FrankSpitulski merged commit 6a7ee4c into main May 28, 2026
15 checks passed
@FrankSpitulski FrankSpitulski deleted the fix/chart/6230686-cpc-mqtt-streams branch May 28, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant