apiVersion: v1
kind: Secret
metadata:
  labels:
    app.kubernetes.io/instance: RELEASE-NAME
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: rabbitmq
    helm.sh/chart: rabbitmq-8.11.4
  name: load-definition
  namespace: default
stringData:
  load_definition.json: |
    {
      "vhosts": [
        {
          "name": "xray"
        }
      ],
      "permissions": [
      {
        "user": "admin",
        "vhost": "xray",
        "configure": ".*",
        "write": ".*",
        "read": ".*"
      }
      ],
      "policies": [
        {
          "name": "ha-all",
          "apply-to": "all",
          "pattern": ".*",
          "vhost": "xray",
          "definition": {
            "ha-mode": "all",
            "ha-sync-mode": "automatic",
          }
        }
      ]
    }
type: Opaque
