apiVersion: apps/v1
kind: Deployment
metadata:
  name: ansible-service-broker-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      name: ansible-service-broker-operator
  template:
    metadata:
      labels:
        name: ansible-service-broker-operator
    spec:
      serviceAccountName: ansible-service-broker-operator
      containers:
        - name: ansible-service-broker-operator
          # Replace this with the built image name
          image: "osb.openshift.io/testing-operator:testing"
          ports:
          - containerPort: 60000
            name: metrics
          imagePullPolicy: IfNotPresent
          env:
            - name: WATCH_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: IMAGE
              value: "docker.io/ansibleplaybookbundle/origin-ansible-service-broker:v4.0"
            - name: OPERATOR_NAME
              value: "ansible-service-broker-operator"
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
