apiVersion: v1
kind: ConfigMap
metadata:
  name: rook-ceph-1.12.7-d2iq-defaults
  namespace: ${releaseNamespace}
data:
  values.yaml: |
    ---
    image:
      # This image was patched to fix CVEs. To build new version of the image:
      # See: https://github.com/mesosphere/dkp-container-images
      repository: ghcr.io/mesosphere/dkp-container-images/rook/ceph

    crds:
      # CRDs are not installed with "crds" directory and If this flag is disabled post-install, the cluster may be DESTROYED.
      # If the CRDs are deleted in this case, see the disaster recovery guide to restore them.
      # https://rook.io/docs/rook/latest/Troubleshooting/disaster-recovery/#restoring-crds-after-deletion
      enabled: true

    priorityClassName: "system-cluster-critical"
    resources:
      limits:
        cpu: 750m
        memory: 768Mi
      requests:
        cpu: 100m
        memory: 128Mi

    # Whether rook watches its current namespace for CRDs or the entire cluster, defaults to false
    currentNamespaceOnly: true

    logLevel: DEBUG

    csi:
      enableRbdDriver: false
      enableCephfsDriver: false
      enableCSIHostNetwork: false
      enableCephfsSnapshotter: false
      enableNFSSnapshotter: false
      enableRBDSnapshotter: false
      enableCSIEncryption: false
      rbdFSGroupPolicy: ReadWriteOnceWithFSType

    monitoring:
      enabled: false

    # This allows DKP installations with static local static provisioner with loopback block devices (E.g.: preprovisioned with LVMs) work out of the box.
    allowLoopDevices: true