# Copyright Contributors to the Open Cluster Management project

# Licensed Materials - Property of IBM
# IBM Confidential
# OCO Source Materials
# (C) Copyright IBM Corporation 2016, 2019 All Rights Reserved
# The source code for this program is not published or otherwise divested of its trade secrets, irrespective of what has been deposited with the U.S. Copyright Office.

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