apiVersion: v1
kind: Pod
metadata:
  name: nats-operator-e2e
  namespace: __NAMESPACE__
spec:
  containers:
  - name: nats-operator-e2e
    image: gcr.io/project-id/nats-operator-e2e
    args:
    - /nats-operator-e2e
    - -namespace
    - "$(NAMESPACE)"
    - -test.v
    - -feature-gates=ClusterScoped=__FEATURE_GATE_CLUSTER_SCOPED__
    env:
    - name: NAMESPACE
      valueFrom:
        fieldRef:
          fieldPath: metadata.namespace
  # TODO: Create and use a nats-operator-e2e service account.
  serviceAccountName: nats-operator
  restartPolicy: Never
