Skip to content

Comments

fix: Use pointer types for boolean fields in PulsarSink to prevent omitempty issues#341

Merged
freeznet merged 4 commits intomainfrom
fix/issue-3133
Sep 4, 2025
Merged

fix: Use pointer types for boolean fields in PulsarSink to prevent omitempty issues#341
freeznet merged 4 commits intomainfrom
fix/issue-3133

Conversation

@freeznet
Copy link
Member

@freeznet freeznet commented Sep 1, 2025

When boolean fields have omitempty tag and are set to false, they get omitted from JSON serialization causing the fields to disappear. This creates sync loops with GitOps tools like ArgoCD.

Changed CleanupSubscription, RetainOrdering, RetainKeyOrdering, and AutoAck fields to use *bool instead of bool to properly handle false values.

Fixes streamnative/eng-support-tickets#3133

Generated with Claude Code

…itempty issues

When boolean fields have omitempty tag and are set to false, they get
omitted from JSON serialization causing the fields to disappear. This
creates sync loops with GitOps tools like ArgoCD.

Changed CleanupSubscription, RetainOrdering, RetainKeyOrdering, and AutoAck
fields to use *bool instead of bool to properly handle false values.

Fixes #3133

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@freeznet freeznet self-assigned this Sep 1, 2025
@freeznet freeznet requested review from a team as code owners September 1, 2025 03:12
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2025

@freeznet:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions github-actions bot added the doc-info-missing This pr needs to mark a document option in description label Sep 1, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license-eye has totally checked 449 files.

Valid Invalid Ignored Fixed
356 2 91 0
Click to see the invalid file list
  • charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsinks.yaml
  • config/crd/bases/resource.streamnative.io_pulsarsinks.yaml

freeznet and others added 3 commits September 4, 2025 11:52
…_pulsarsinks.yaml

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@freeznet freeznet merged commit 88a465f into main Sep 4, 2025
5 checks passed
@freeznet freeznet deleted the fix/issue-3133 branch September 4, 2025 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-info-missing This pr needs to mark a document option in description

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants