Skip to content

Operator fails to set --setmetadata=false #380

@sshambar

Description

@sshambar

Describe the bug

The Driver.spec.enableMetadata is false by default, but the reconciler only applies --setmetadata=true if enableMetadata is true -- however --setmetadata is true by default, so the key has no effect.

Environment details

  • Image/version of ceph-csi-operator : 0.4.1
  • Image/version of Ceph-CSI driver : v3.15.0
  • Kubernetes cluster version : v1.33.5
  • Ceph cluster version : 19.2.3

Steps to reproduce

Steps to reproduce the behavior:

  1. Set a Driver.spec.enableMetadata: false (or don't specify it)
  2. Apply the driver, and examine the ctrlplugin controller deployment

Actual results

The csi-cephfsplugin container args doesn't include '--setmetadata={bool}'

Expected behavior

The csi-cephfsplugin container args should include '--setmetadata=false'

Additional context

For ref: kubectl exec <ctrlplugin-pod> -- /usr/local/bin/cephcsi -h provides:

  -setmetadata
        set metadata on the volume (default true)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions