kind: ConfigMap
apiVersion: v1
metadata:
  name: topolvm-operator-setting
  namespace: nativestor-system
data:
  KUBELET_ROOT_DIR: "/var/lib/kubelet"
  OPERATOR_LOG_LEVEL: "INFO"
  RAW_DEVICE_ENABLE: "true"
  TOPOLVM_ENABLE: "true"
  RAW_DEVICE_IMAGE: "docker.io/alaudapublic/raw-device:v1.0.0"
  TOPOLVM_IMAGE: "quay.io/topolvm/topolvm-with-sidecar:0.10"
  # Set replicas for csi provisioner deployment.
  CSI_PROVISIONER_REPLICAS: "2"
  CSI_LOG_LEVEL: "3"
  CSI_REGISTRAR_IMAGE: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.3.0"
  CSI_RESIZER_IMAGE: "k8s.gcr.io/sig-storage/csi-resizer:v1.3.0"
  CSI_PROVISIONER_IMAGE: "k8s.gcr.io/sig-storage/csi-provisioner:v3.0.0"
  CSI_SNAPSHOTTER_IMAGE: "k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0"
  CSI_ATTACHER_IMAGE: "k8s.gcr.io/sig-storage/csi-attacher:v3.3.0"
  CSI_LIVENESS_IMAGE: "k8s.gcr.io/sig-storage/livenessprobe:v2.4.0"
#  CSI_PROVISIONER_TOLERATIONS: |
#    - effect: NoSchedule
#      key: node-role.kubernetes.io/controlplane
#      operator: Exists
#    - effect: NoExecute
#      key: node-role.kubernetes.io/etcd
#      operator: Exists
#  CSI_PLUGIN_TOLERATIONS: |
#    - effect: NoSchedule
#      key: node-role.kubernetes.io/controlplane
#      operator: Exists
#    - effect: NoExecute
#      key: node-role.kubernetes.io/etcd
#      operator: Exists
#  CSI_TOPOLVM_PROVISIONER_TOLERATIONS: |
#    - operator: Exists
#  CSI_TOPOLVM_PLUGIN_TOLERATIONS: |
#    - operator: Exists
#  CSI_RAW_DEVICE_PROVISIONER_TOLERATIONS: |
#    - operator: Exists
#  CSI_RAW_DEVICE_PLUGIN_TOLERATIONS: |
#    - operator: Exists
#  CSI_TOPOLVM_PROVISIONER_RESOURCE: |
#   - name: csi-provisioner
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 100m
#       limits:
#         memory: 256Mi
#         cpu: 200m
#   - name: csi-resizer
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 100m
#       limits:
#         memory: 256Mi
#         cpu: 200m
#   - name: csi-attacher
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 100m
#       limits:
#         memory: 256Mi
#         cpu: 200m
#   - name: csi-topolvm-plugin
#     resource:
#       requests:
#         memory: 512Mi
#         cpu: 250m
#       limits:
#         memory: 1Gi
#         cpu: 500m
#   - name: liveness-prometheus
#     resource:
#       requests:
#         memory: 50Mi
#         cpu: 25m
#       limits:
#         memory: 256Mi
#         cpu: 100m
#  CSI_TOPOLVM_PLUGIN_RESOURCE: |
#   - name: driver-registrar
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 50m
#       limits:
#         memory: 256Mi
#         cpu: 100m
#   - name: csi-topolvm-plugin
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 250m
#       limits:
#         memory: 1Gi
#         cpu: 500m
#   - name: lvmd
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 50m
#       limits:
#         memory: 256Mi
#         cpu: 100m
#   - name: liveness-prometheus
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 50m
#       limits:
#         memory: 256Mi
#         cpu: 100m
#  CSI_RAW_DEVICE_PROVISIONER_RESOURCE: |
#   - name: csi-provisioner
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 100m
#       limits:
#         memory: 256Mi
#         cpu: 200m
#   - name: csi-raw-device-plugin
#     resource:
#       requests:
#         memory: 512Mi
#         cpu: 250m
#       limits:
#         memory: 1Gi
#         cpu: 500m
#   - name: liveness-prometheus
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 50m
#       limits:
#         memory: 256Mi
#         cpu: 100m
#  CSI_RAW_DEVICE_PLUGIN_RESOURCE: |
#   - name: driver-registrar
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 50m
#       limits:
#         memory: 256Mi
#         cpu: 100m
#   - name: csi-raw-device-plugin
#     resource:
#       requests:
#         memory: 512Mi
#         cpu: 250m
#       limits:
#         memory: 1Gi
#         cpu: 500m
#   - name: liveness-prometheus
#     resource:
#       requests:
#         memory: 128Mi
#         cpu: 50m
#       limits:
#         memory: 256Mi
#         cpu: 100m
