apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: pubsub
spec:
  version: v1
  type: pubsub.rabbitmq
  metadata:
  - name: hostname
    secretKeyRef:
      name: staging-atlantis-rabbitmq
      key:  connString
  - name: username
    value: user
  - name: password
    secretKeyRef:
      name: staging-atlantis-rabbitmq
      key:  rabbitmq-password
  - name: protocol
    value: amqp
  - name: durable
    value: true
  - name: deletedWhenUnused
    value: false
  - name: autoAck
    value: false
  - name: deliveryMode
    value: 1
  - name: requeueInFailure
    value: false
  - name: prefetchCount
    value: 0
  - name: reconnectWait
    value: 0
  - name: concurrencyMode
    value: parallel
  - name: publisherConfirm
    value: false
  - name: backOffPolicy
    value: exponential
  - name: backOffInitialInterval
    value: 100
  - name: backOffMaxRetries
    value: 16
  - name: enableDeadLetter # Optional enable dead Letter or not
    value: true
  - name: maxLen # Optional max message count in a queue
    value: 3000
  - name: maxLenBytes # Optional maximum length in bytes of a queue.
    value: 10485760
  - name: exchangeKind
    value: fanout
  - name: clientName
    value: "{appID}"
