Service Broker source

Example configuration (YAML):

sources:
  - type: service_broker
    config:
      # List of brokers
      brokers:
        - https://broker1.com/instances
        - https://broker2.net:8443/api/instances

      # Optional: somewhere to keep the last good config
      file: /tmp/broker_result_backup.json

      # Load from debug_instances when requests to brokers fail
      debug: yes
      debug_instances:
        - instance_id: my_service
          parameters:
            upstream_address: service.domain.com
          plan_id: 7d57270a-0348-58d3-829d-447a98fe98d5
          service_id: 10e5a402-45df-5afd-ae86-11377ce2bbb2
          service_clusters:
            - P2
class sovereign.sources.service_broker.ServiceBroker(*args, **kwargs)

Bases: sovereign.sources.lib.Source

get() → list

Retrieves data from the broker over http/s

Returns a last known good configuration in the case of a failure.

Returns debugging instances given via the service broker source configuration if debugging is enabled.

Returns:list of instances from the broker
load()

Loads the last known good configuration in the case that the broker can’t be contacted

save(data)

Saves a backup of the last known good configuration