apiVersion: apps/v1
kind: DaemonSet
metadata:
  labels:
    csidriver.storage.openshift.io/owner-name: test
    csidriver.storage.openshift.io/owner-namespace: "default"
  name: test-node
  namespace: default
  ownerReferences:
  - apiVersion: csidriver.storage.openshift.io/v1alpha1
    controller: true
    kind: CSIDriverDeployment
    name: test
    uid: "1234567890"
spec:
  selector:
    matchLabels:
      csidriver.storage.openshift.io/daemonset: test-node
  template:
    metadata:
      labels:
        csidriver.storage.openshift.io/daemonset: test-node
    spec:
      containers:
      - args:
        - --test-argument=bar
        image: quay.io/k8scsi/hostpathplugin:v0.2.0
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthz
            port: csi-probe
          initialDelaySeconds: 60
          periodSeconds: 60
          timeoutSeconds: 30
        name: csi-driver
        ports:
        - containerPort: 9808
          name: csi-probe
          protocol: TCP
        volumeMounts:
        - mountPath: /csi
          name: csi-driver
        - mountPath: /var/lib/kubelet
          mountPropagation: Bidirectional
          name: kubelet-root
        securityContext:
          privileged: true
      - args:
        - --v=5
        - --csi-address=$(ADDRESS)
        - --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
        env:
        - name: ADDRESS
          value: /csi/csi.sock
        - name: DRIVER_REG_SOCK_PATH
          value: /var/lib/kubelet/plugins/csi-test/csi.sock
        - name: KUBE_NODE_NAME
          valueFrom:
            fieldRef:
              fieldPath: spec.nodeName
        image: quay.io/k8scsi/driver-registrar:v0.3.0
        name: csi-driver-registrar
        volumeMounts:
        - mountPath: /csi
          name: csi-driver
        - mountPath: /registration
          name: registration-dir
        securityContext:
          privileged: true
      - args:
        - --v=5
        - --csi-address=$(ADDRESS)
        env:
        - name: ADDRESS
          value: /csi/csi.sock
        image: quay.io/k8scsi/livenessprobe:latest
        imagePullPolicy: IfNotPresent
        name: csi-probe
        volumeMounts:
        - mountPath: /csi
          name: csi-driver
        securityContext:
          privileged: true
      serviceAccountName: test
      volumes:
      - hostPath:
          path: /var/lib/kubelet/plugins
          type: Directory
        name: registration-dir
      - hostPath:
          path: /var/lib/kubelet/plugins/csi-test
          type: DirectoryOrCreate
        name: csi-driver
      - hostPath:
          path: /var/lib/kubelet
          type: Directory
        name: kubelet-root
  updateStrategy:
    type: RollingUpdate
