---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ovirt-csi-driver-operator
  namespace: openshift-ovirt-csi-driver-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      name: ovirt-csi-driver-operator
  template:
    metadata:
      labels:
        name: ovirt-csi-driver-operator
    spec:
      serviceAccountName: csi-operator
      containers:
        - name: ovirt-csi-driver-operator
          image: quay.io/ovirt/csi-driver-operator
          command:
          - ovirt-csi-driver-operator
          args:
            - "--v=5"
            - "--zap-devel"
          imagePullPolicy: Always
          env:
            - name: RELEASE_VERSION
              value: "0.0.1-snapshot"  
            - name: WATCH_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: OPERATOR_NAME
              value: "ovirt-csi-driver-operator"
