apiVersion: apps/v1
kind: Deployment
metadata:
  name: apicurio-registry-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      name: apicurio-registry-operator
  template:
    metadata:
      labels:
        name: apicurio-registry-operator
        apicur.io/type: operator
        apicur.io/name: apicurio-registry-operator
        apicur.io/version: 1.0.0-dev
    spec:
      serviceAccountName: apicurio-registry-operator
      containers:
        - name: apicurio-registry-operator
          # Replace this with the built image name
          image: quay.io/apicurio/apicurio-registry-operator:1.0.0-dev
          imagePullPolicy: Always
          resources:
            limits:
              memory: "64Mi"
              cpu: "4m"
            requests:
              memory: "32Mi"
              cpu: "2m"
          env:
            - name: REGISTRY_VERSION
              value: "2.0.x"
            - name: REGISTRY_IMAGE_MEM
              value: "quay.io/apicurio/apicurio-registry-mem:latest-snapshot"
            - name: REGISTRY_IMAGE_STREAMS
              value: "quay.io/apicurio/apicurio-registry-streams:latest-snapshot"
            - name: REGISTRY_IMAGE_SQL
              value: "quay.io/apicurio/apicurio-registry-sql:latest-snapshot"
            - name: REGISTRY_IMAGE_INFINISPAN
              value: "quay.io/apicurio/apicurio-registry-infinispan:latest-snapshot"
            - name: WATCH_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: POD_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: OPERATOR_NAME
              value: "apicurio-registry-operator"
