apiVersion: apps/v1
kind: Deployment
metadata:
  name: performance-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      name: performance-operator
  template:
    metadata:
      labels:
        name: performance-operator
    spec:
      serviceAccountName: performance-operator
      containers:
        - name: performance-operator
          # Replace this with the built image name
          image: REPLACE_IMAGE
          command:
          - performance-operator
          imagePullPolicy: Always
          env:
            - name: WATCH_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: OPERATOR_NAME
              value: "performance-operator"
