github.skymusic.top/operator-framework/operator-sdk@v0.8.2/test/test-framework/deploy/operator.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: memcached-operator
     5  spec:
     6    replicas: 1
     7    selector:
     8      matchLabels:
     9        name: memcached-operator
    10    template:
    11      metadata:
    12        labels:
    13          name: memcached-operator
    14      spec:
    15        serviceAccountName: memcached-operator
    16        containers:
    17          - name: memcached-operator
    18            # Replace this with the built image name
    19            image: quay.io/coreos/operator-sdk-dev:test-framework-operator-multi
    20            command:
    21            - memcached-operator
    22            imagePullPolicy: Always
    23            env:
    24              - name: WATCH_NAMESPACE
    25                valueFrom:
    26                  fieldRef:
    27                    fieldPath: metadata.namespace
    28              - name: POD_NAME
    29                valueFrom:
    30                  fieldRef:
    31                    fieldPath: metadata.name
    32              - name: OPERATOR_NAME
    33                value: "memcached-operator"