Skip to content

fix: explicitly set boolean flag values for both true and false#451

Merged
Madhu-1 merged 1 commit into
ceph:mainfrom
iPraveenParihar:fix/explicit-flag-values
Apr 9, 2026
Merged

fix: explicitly set boolean flag values for both true and false#451
Madhu-1 merged 1 commit into
ceph:mainfrom
iPraveenParihar:fix/explicit-flag-values

Conversation

@iPraveenParihar

@iPraveenParihar iPraveenParihar commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Describe what this PR does

SetMetadataContainerArg and SetFencingContainerArg returned an empty string when false,
relying on ceph-csi defaults. If ceph-csi changes its defaults, users who explicitly set these to
false in their Driver CR would be silently ignored. Use fmt.Sprintf with %t to always pass the
explicit value.

See: ceph/ceph-csi#6218 (comment)

Fixes: #380

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Pending release notes updated with breaking and/or notable changes for the next major release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

SetMetadataContainerArg and SetFencingContainerArg returned an empty
string when false, relying on ceph-csi defaults. If ceph-csi changes
its defaults, users who explicitly set these to false in their Driver
CR would be silently ignored. Use fmt.Sprintf with %t to always pass
the explicit value.

Signed-off-by: Praveen M <m.praveen@ibm.com>

@nixpanic nixpanic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, thanks!

@Madhu-1 Madhu-1 merged commit 70f7300 into ceph:main Apr 9, 2026
17 checks passed
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.

Operator fails to set --setmetadata=false

3 participants