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