# CSI controller service
controller:
  # controller.replicaCount -- Number of replicas for CSI controller service.
  replicaCount: 1

# lvmd service
lvmd:
  # lvmd.deviceClasses -- Specify the device-class settings.
  deviceClasses:
  - name: vg0
    volume-group: vg0
    default: true
    spare-gb: 10

  # lvmd.affinity -- Specify affinity.
  ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: topolvm-lvmd.cluster.local/schedulable
            operator: NotIn
            values:
            - "false"
  tolerations:
  - key: workstation.cluster.local
    operator: Equal
    value: 'true'
    effect: NoSchedule
  - key: edge.cluster.local/not-schedulable
    operator: Equal
    effect: NoSchedule

node:
  # lvmd.affinity -- Specify affinity.
  ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: topolvm-node.cluster.local/schedulable
            operator: NotIn
            values:
            - "false"
  tolerations:
  - key: workstation.cluster.local
    operator: Equal
    value: 'true'
    effect: NoSchedule
  - key: edge.cluster.local/not-schedulable
    operator: Equal
    effect: NoSchedule
