Skip to content

fix: avoid omitting boolean values when serializing#389

Open
DavidLindbom wants to merge 1 commit intostreamnative:mainfrom
DavidLindbom:fix-boolean-omitempty
Open

fix: avoid omitting boolean values when serializing#389
DavidLindbom wants to merge 1 commit intostreamnative:mainfrom
DavidLindbom:fix-boolean-omitempty

Conversation

@DavidLindbom
Copy link
Copy Markdown

Fixes #374

Motivation

When setting topicAutoCreationConfig.allow: false on a PulsarNamespace resource the operator updates the object with the field removed which causes our gitops tool to reapply the field. Over and over again.

Modifications

Removed omitempty for all boolean fields.

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

  • controllers/pulsartopic_boolean_persistence_test.go

Documentation

  • no-need-doc

The patch is not a functional change.

@DavidLindbom DavidLindbom requested review from a team as code owners March 28, 2026 13:51
@github-actions github-actions bot added the no-need-doc This pr does not need any document label Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-need-doc This pr does not need any document

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omitEmpty on tlsAllowInsecureConnection causes infinite loop when value is false

2 participants